Hi,
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
siva
Discussions
EJB programming & troubleshooting: calling a static method of my class when the server starting?
-
calling a static method of my class when the server starting? (2 messages)
- Posted by: siva kumar
- Posted on: February 19 2002 06:19 EST
Threaded Messages (2)
- 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
-
calling a static method of my class when the server starting?[ Go to top ]
- Posted by: Martin Keys
- Posted on: February 19 2002 10:00 EST
- in response to siva kumar
use a start up servlet -
calling a static method of my class when the server starting?[ Go to top ]
- Posted by: Abhijit Gaikwad
- Posted on: February 19 2002 11:16 EST
- in response to siva kumar
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 :)
Cheers,
Abhijit