how to start an applic. automatically, when server or context start

hai everybody

i am phasing a problem with this concept. pleas help me out. i am trying to start a application automatically in server while server restarts.can u give me some idea in this. i am using apache tomcat web server. if i start the server once, the application which i want to run should automatically deploy in the server. so that i need not to start the application manually.. can u pleas help me out on this.

advanced thanks..

[459 byte] By [brucelia] at [2007-11-27 0:26:23]
# 1

How do you start the application manually?

Web applications are automatically loaded and activated by Tomcat. However, that does not mean they automatically start to do anything by themselves.

You probably want to add the <LoadOnStartup> parameter to one (or more) of your servlets in the web.xml file. This will cause the servlet's init() method to be called when the webapp gets loaded.

Herko_ter_Horsta at 2007-7-11 22:24:51 > top of Java-index,Java Essentials,Java Programming...