Maybe this could be of help:

In Tomcat, there is a command "tomcat start" and "tomcat stop".  Those 
can be used from a terminal session, but they map to java code, so this 
would allow stopping from java code too (and/or ant).

Maybe this same strategy could be used for james?


YILMAZ GULERYUZ wrote:

>Hi,
>Yes, it the telnet based admin(telnet ... 4555).
>I guess it is the best way is to use the telnet based
>admin util to shutdown.
>Ctrl+C does not work to shutdown under linux.
>Another can be, to find the process id of James and
>kill ing the process. I was using this way(killing)
>while i using James 1.2.1.
>
>yilmaz
>www.java.ankanet.com.tr
>
>
>
>--- Jean-Charles Alinquant
><[EMAIL PROTECTED]> wrote:
>  
>
>>Hi yilmaz,
>>
>>Thanks for the reply.
>>
>>I just want to clarify what you mean by the 'admin
>>interface'
>>Is it the telnet based utility 'JAMES
>>RemoteAdministration Tool'?
>>
>>I can see that there is a 'shutdown' command but I
>>don't really want to
>>use the telnet based utility to shut down james. I
>>would like to be able
>>to do this programmatically so that I can shutdown
>>James using a simple
>>ant script. Any idea how to do this?
>>
>>Thanks
>>
>>-----Original Message-----
>>From: YILMAZ GULERYUZ
>>[mailto:[EMAIL PROTECTED]] 
>>Sent: 13 June 2002 10:31
>>To: James Users List;
>>[EMAIL PROTECTED]
>>Subject: Re: How to shut down James?
>>
>>the admin interface had been enhanced with new
>>commands.
>>
>>while the james service is running, connect to admin
>>interface and execute command 'shutdown'. this will
>>shutdown James safely.
>>
>>yilmaz
>>http://www.java.ankanet.com.tr
>>
>>
>>--- Jean-Charles Alinquant
>><[EMAIL PROTECTED]> wrote:
>>    
>>
>>>Hi,
>>> 
>>>I have downloaded and installed James20a3.
>>>I can start it using the supplied run.bat file but
>>>      
>>>
>>I
>>    
>>
>>>am looking for a
>>>way to shut it down other than by down a CTRL-C.
>>>Is there any way to do this?
>>>If not, are there any plans to implement such an
>>>option in future
>>>releases?
>>> 
>>>Thanks
>>> 
>>>Jean-Charles
>>> 
>>>
>>>      
>>>
>>__________________________________________________
>>Do You Yahoo!?
>>Yahoo! - Official partner of 2002 FIFA World Cup
>>http://fifaworldcup.yahoo.com
>>
>>
>>--
>>To unsubscribe, e-mail:  
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>    
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>  
>

-- 
!try; do()
--
Vincent Keunen, Ir, http://vincent.keunen.net
Manex, rue Wagner 93, BE-4100 Boncelles, Belgium
Our site: http://www.manex.be


Reply via email to