just initialize the thread in the servlet's init() method and shut it
down in the servlet's destroy() method.  then just make sure that the
servlet is started on server startup by adding this to the servlet
definition in your web.xml:

<load-on-startup />

i think that should be the same regardless if you're running on
tomcat, jetty, or whatever.


On Mar 25, 1:26 pm, "[email protected]" <[email protected]> wrote:
> You would start it any way you would normally do such things in Java/
> Servlets (not a GWT specific question).  Maybe something like
> static Thread mythread = new Thread(){};
>
> mythread.run();
> if you need this to start on server startup you need to have this
> hooked into whatever server you're using (ie how to do this on tomcat
> will be different from jetty/websphere/jboss/etc)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to