I think we should assume that 'the program' will function correctly and do
what it's advertised to do, since if that was the actual problem, then a
list like 'java-rmi-user' or 'java-io-user' would be more appropriate. 

The tomcat application, and that second application should be coded to
handle the cases when 'the program' is not available. If that's still a
problem, refer to the aformentioned, fictious(?) groups.  

All that remains is "how do I get 'the program' to run?" Oddly enough,
that's still not tomcat-user, but hey we like to help out.
 
For that (as Yoav said), you need a *nix admin type person to write some rc
scripts for you, or investigate how to do so for yourself. Find a BB or
other email-user list for the exact flavour of *nix you are running, and ask
about rc.d scripts on that list. (rc.d is the approximate equivalent on
*nix, of the Windows Services control panel).




> -----Original Message-----
> From: John Najarian [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 10, 2004 2:28 PM
> To: 'Tomcat Users List'
> Subject: RE: How to create/run a Java Service on UNIX
> 
> 
> Hi Daxin,
> 
>    How are you going to genereate the keys?  Via the 
> database?  Also, seeing as you are going to use 'service' 
> with & without Tomcat I'd like to know if either application 
> will be up as long as the server(s) is up.  If that's the 
> case you could have both applications check at startup if the 
> daemon is
> active(running) or not not.  If the daemon isn't active 
> either application could start it.  If this service should be 
> up whenever the hardware is up you could start the service on 
> boot so it is in theory always available to the 2 
> applications when they are started but each must check if the 
> daemon is running prior to accessing the daemon.
> 
>    The person who recommended learning daemons was entirely 
> right and without my knowing more of the 2 applications I can 
> not tell you more except since tomcat will access he daemon, 
> I would look closely at the framework in Jakarta to see if it 
> will suit both applications.  I haven't looked at it closely 
> and it Tomcat must be running for the daemon to be running(which I
> doubt) I wouldn't utilize that framework.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to