EJB programming & troubleshooting: calling a static method of my class when the server starting?
- Posted by: siva kumar
- Posted on: February 19 2002 06:19 EST
i wanted to call a static method of a java class,
whenever i start the server.
plz give some input on this.
thanks and regards
- calling a static method of my class when the server starting? by Martin Keys on February 19 2002 10:00 EST
- calling a static method of my class when the server starting? by Abhijit Gaikwad on February 19 2002 11:16 EST
use a start up servlet
Hi siva manic ,
Answer to your Question
If you just want to call static method of a java class at start up , You can write Start up Class (with main Method) which will call static Method of other class .
Now putting Start up class into Server (Application Server
I suppose ) will vary from Server to Sever .
if you are using Welblogic 6.1 ,you can specify start up class using weblogic console.
Other wise if you are using other Application Server see it's documentation "How to setup Start up class" .
Hope this helps you :)