We have an issue with using threads in a servlet which has raised a few questions:
Firstly are servlets allowed to spawn threads? I know EJBs are not but dont think the same applies to servlets
Secondly - provided threads in servlets are allowed should they be able to access objects via local JNDI names. The problem we are encountering is because the threads originally used global JNDI names to lookup objects and this worked fine. But when we changed them to use local names the lookup fails - is this correct behaviour (our web container is websphere which is J2EE compliant). We are guessing that either the servlets thread has access to the servlet context but spawned threads do not OR this is a bug
Lastly (and a little off-topic) - my understanding is that neither EJBs nor any supporting classes which they use should ever spawn threads. But collegues are certain that the supporting classes are free to use threading - which view is correct?
thanks
Gareth
Send and receive Hotmail on your mobile device: Click Here
___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
