This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlets & threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets & threads" Watch "Servlets & threads" New topic

Servlets & threads

William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

Does the latest version of the Servlets spec deal differently with threads which are created inside of servlets?

Please ignore post, I have no idea what I am talking about.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
Servlet containers are allowed to place restrictions on applications. The 2.4 spec, section SRV 1.2 specifically mentions restricting Thread creation.
Why not download the spec and read for yourself? This Sun site is a good start.
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
Indeed, WLS specifically tells you to be very careful when using threads.

<a href="" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
Hi Scott,
Do the others application server (such as Tomcat, Resin, Oracle, IBM WebSphere) have same behavior like WebLogic?

It is sorta covered in the JavaRanch Style Guide.
subject: Servlets & threads
Similar Threads
exception handling in threads
Threads in servlets
Is it allowed to create threads inside servlets?
Thread running withing a servlet