You can add the in the web.xml of the servlet configuration like this

        <servlet>
                <servlet-name>InitServlet</servlet-name>
                <display-name>InitServlet</display-name>
                <servlet-class>InitServlet</servlet-class>
                <init-param>
                        <param-name>Initialize</param-name>
        
<param-value>com.voquette.vms.GateWayAPI</param-value>
                </init-param>
                <load-on-startup>1</load-on-startup>
        </servlet>

When the orion starts up it will invoke the above servlet's init method.
You can place your custom code in the init method of the servlet.

Kesav Kumar
Software Engineer
Voquette, Inc.
650 356 3740
mailto:[EMAIL PROTECTED]
http://www.voquette.com


-----Original Message-----
From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 9:16 AM
To: Orion-Interest
Subject: Servlet startup in Orion?


I have a servlet which allows us to upload files to the Oracle DB.  Right 
now when I run it, I do this:

java percepticon.freedom.BlobUpServer -db /u01/home/robert/db.props -p 8124

I know that in Weblogic there's a way to start this servlet within weblogic 
so that we don't have to worry about whether the service is stopped or
started.

Is there a place I can do this in Orion?  Like a tutorial somewhere that I 
might have missed?

Thanks.
R


Robert S. Sfeir
Director of Software Development
PERCEPTICON corporation
San Francisco, CA 94123
w - http://www.percepticon.com/
e- [EMAIL PROTECTED]
t - (415) 749-2900 x205


Reply via email to