Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Servlet Interest »

Re: staticly servlet context

Neale Rudd

2004-12-21


Hi,

A timer thread won't have a servlet context.

However, if you want it to use the context of the servlet that started it,
you can pass that in from the starting servlet when you start the timer
thread class.

Then you should be able to pull it out again from the timer class where you
need it.

Hope that helps,
Neale Rudd
metawerx java hosting
http://www.metawerx.net

___________________________________________________________________________
To unsubscribe, send email to listserv@(protected)
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
©2008 junlu.com - Jax Systems, LLC, U.S.A.