  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Use of Threading in WebServer/AppServer | Use of Threading in WebServer/AppServer 2004-08-30 - By Dhiren Mehta
Back Hi,
I sent this query few days back, but haven't recd any reply; thus resending it.
Thanks
Dhiren
-- --Original Message-- -- From: Dhiren Mehta Sent: Thursday, August 26, 2004 1:59 PM To: 'A mailing list for Java(tm) 2 Platform, Enterprise Edition' Subject: Use of Threading in WebServer/AppServer
Hi,
I have read several conflicting articles on using Theads in WebServers/AppServers. Can someone advise me (from their experience) if it's safe to use Threads within the WebServer and AppServer JVM? If from a Servlet a helper class that extends Thread is used (in which case the class will get executed under WebServer JVM) will that cause any problem?
And how about using such classes from EJB? (I know EJB Spec strongly suggests not to use Threads). My target AppServers are Weblogic and WebSphere.
Thanks in Advance
Dhiren
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
<html>
<head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 10 (filtered)">
<style> <!-- /* Font Definitions */ @(protected) {font-family:Tahoma; panose-1 (See http://ose-1.ora-code.com):2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} p {margin-right:0in; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";} span.emailstyle18 {font-family:Arial; color:navy;} span.EmailStyle19 {font-family:Arial; color:navy;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>Hi,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>I sent this query few days back, but haven ’t recd any reply; thus resending it.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>Thanks</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>Dhiren</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>-- --Original Message-- --<br> <b><span style='font-weight:bold'>From:</span></b> Dhiren Mehta <br> <b><span style='font-weight:bold'>Sent:</span></b> Thursday, August 26, 2004 1:59 PM<br> <b><span style='font-weight:bold'>To:</span></b> 'A mailing list for Java(tm) 2 Platform, Enterprise Edition'<br> <b><span style='font-weight:bold'>Subject:</span></b> Use of Threading in WebServer/AppServer</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman" ><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>Hi,</span>< /font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span>< /font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>I have read several conflicting articles on using Theads in WebServers/AppServers. Can someone advise me (from their experience) if it’s safe to use Threads within the WebServer and AppServer JVM? If from a Servlet a helper class that extends Thread is used (in which case the class will get executed under WebServer JVM) will that cause any problem?</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span>< /font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>And how about using such classes from EJB? (I know EJB Spec strongly suggests not to use Threads). My target AppServers are Weblogic and WebSphere.</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span>< /font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span>< /font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>Thanks in Advance</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span>< /font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>Dhiren</span>< /font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span>< /font></p>
</div>
</body>
</html>
|
|
|