> From: Pulkit Singhal [mailto:[EMAIL PROTECTED] > Subject: Re: UDP Server app > > a) I think that since main() is a static method, it should > run automagically when you deploy your app into webapps and > start tomcat.
At best, that's wishful thinking. Tomcat is not the same as java.exe (or the UNIX/Linux equivalent), and that's the only thing that calls main() automatically. Please read the Servlet spec. (Providing a static public main() API is sometimes useful as a means of testing a simple webapp outside of Tomcat.) In any event, there are standard APIs called at webapp initialization that can be used for this (again, read the spec), but that presumes that this application benefits in some way from being run under Tomcat. No evidence has been presented so far in this thread that such is the case. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]