thanks to all of u. Yeah, I know about weblogic. There is one interface T3StartupDef 
that has to be implemented.

Anyway, my requirement is to run some background scheduler that should be started at 
the server start up.

Thanks,
Sudarson


-----Original Message-----
From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: Re: start up class in Tomcat 4.0.3


"Årun.N" wrote:
> 
> Please check the weblogic documentations.
>

 Maybe not.


> startup is supported for programs which has main methos.
> if u have rmi server or other custom socketserver or any
> other service to be runnig with the startup of the server
> u can register in it
> 

 Under the "Config Reference":

   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html

 check out the documentation for "Engine":

   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/engine.html

 specifically the Lifecycle Listeners. These allow you to
add hooks at Engine startup and shutdown. You can use 
Runtime.exec() to execute an external program, or call
your server's main() directly if its jar is visible to
Tomcat. To make your server's Jar visible to Tomcat, you
need to put it (and any other jars it depends on) in
either $TOMCAT_HOME/server/lib or  $TOMCAT_HOME/common/lib.
See the classloader howto for further explanation:

 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

 Note that since you are extending the server itself, your
code would go in server/lib or common/lib, but not 
shared/lib.


-- 
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

___________________________________________________________________________
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