> yejun wrote:
>
> How I can auto start a server socket listening on
> a port when I start the webserver?
>

 You probably don't really want to do that. If the
servlet container gets busy, it's allowed to temporarily
shut down your servlet, and then start it up again
later on.

 That means your server socket can go away at random
times. If it won't always be running, what's the point
of having it?

 More details on what you're trying to do would make
it easier to suggest alternatives. For example, it
might be possible to start up another jvm that you can
fully control.

 If you feel you absolutely must do this thing,then
try the second question at:

 http://www.distributopia.com/servlet_stuff/background_threads.txt

 Keep in mind that even if you get it working with one
servlet container, it might stop working the next time
you upgrade...


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
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

Reply via email to