File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes spawning threads in jsp pages Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "spawning threads in jsp pages" Watch "spawning threads in jsp pages" New topic
Author

spawning threads in jsp pages

doug parker
Ranch Hand

Joined: Oct 26, 2004
Posts: 30
i am reviewing a model 1 architecture and it has a few 'beans' spawning threads in scriptlets. these threads basically execute a query and set its properties. I can't think of a good reason to use threading in this case and have a hunch that it is against the servlet/jsp spec as well as potentially leading to web container issues. what do you think?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56521
    
  14

The thought makes my joints ache.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
doug parker
Ranch Hand

Joined: Oct 26, 2004
Posts: 30
me too & i am the one who has to fix it.
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

A similar issue is being discussed in the servlets forum -
http://www.coderanch.com/t/359270/Servlets/java/Handling-Uploaded-Files
and there are a few links to helpful articles.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: spawning threads in jsp pages
 
Similar Threads
are stateless beans thread safe
Abort Transaction
Advantages of EJB 3/JPA over spring/hibernate
Creating threads in service method
Transaction rollback in a multithreaded scenario