  | 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-26 - By Dhiren Mehta
Back 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> <!-- /* 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;} @(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=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>Hi,</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><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><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><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><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><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><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>Dhiren</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span></font></p>
</div>
</body>
</html>
|
|
|