I think Ben had it right, originally.  Set up a pre-load situation using the 
application's web.xml file to load the servlet when the JRun server first starts up.  
JRun will execute the servlet's init() method as part of this process, so put your 
"start-up" socket code in there.  Then use the servlet's destroy() method to clean up 
whatever you need to clean up - before JRun shuts down, it will call the destroy() 
method allow it to run to completion.  Hope this helps.

Skip

-----Original Message-----
From: RESTREPO, ALEXANDER G [Non-Pharmacia/1000]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 5:02 PM
To: JRun-Talk
Subject: RE: Starting JRun Servers as Service


Hi Everyone:

Basically, I want to execute a java class
on startup and execute another java class
when jrun is shutdown.  I am not interested
in how to startup JRUN during a system startup.

Thanks:

Alex

Alex Restrepo



-----Original Message-----
From: Bob Buford [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 3:40 PM
To: JRun-Talk
Subject: RE: Starting JRun Servers as Service


jrun -install <NT-service_name> <server_name>

like

jrun -install "JRun GCPC Server" gcpc

see p87 of the JRun 3.0 Setup Guide

Bob


-----Original Message-----
From: Drew Falkman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 4:38 PM
To: JRun-Talk
Subject: Starting JRun Servers as Service


On this note...

Does anyone know how to start a JRun Server as a service, as the Default
Server and Admin Server do?

Thanks.

-Drew Falkman

-----Original Message-----
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:24 PM
To: JRun-Talk
Subject: Re: JRUN Startup and Shutdown Settings????


I think what Restrepo meant was how to start Jrun
automatically during system startup

I wonder if JRUN folks have any recommendation on how ot do this?

On the W2K, we have the option to start JRUN under
service.

What about Unix?

-Dan

----- Original Message -----
From: "Ben Groeneveld" <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 12:19 PM
Subject: Re: JRUN Startup and Shutdown Settings????


> Alex, you may look into the init method of a servlet that is
designated
> to be loaded on container startup by the web.xml, and use the destroy
> method of the same servlet.  Hopt that helps, BenG.
>
> RESTREPO, ALEXANDER G [Non-Pharmacia/1000] wrote:
>
> >Hello,
> >
> >I want to be able to run a JSP
> >which stops a socket service when JRUN
> >is shutdown.  I also want to be able
> >to run a JSP which starts a Socket Service
> >when JRUN starts up again.
> >
> >Does anyone know if their is a good
> >method to do this without creating specialized
> >shell scripts?  Are their any JRUN settings or
> >files which can be modified to do this?
> >
> >
> >Many Thanks:
> >
> >Alex Restrepo
> >
>




______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to