Re: Java programm to Shutdwon the tomcat server

2010-03-02 Thread Pid
On 01/03/2010 14:26, dBenjamin wrote: I using customize icon to launch my application before starting the tomcat my java program will check and then it will allow to start the tomcat otherwise it will change the port and server will get start. How are you changing the port? Are you somehow

Re: Java programm to Shutdwon the tomcat server

2010-03-01 Thread Pid
On 01/03/2010 04:23, dBenjamin wrote: Thanks for helping... Can you please find my scenario? 1. I am using windows Environment. 2. I am using tomcat 6 binary distribution versions here we cannot get pid from the windows. 3. For my requirement before starting the tomcat server I

RE: Java programm to Shutdwon the tomcat server

2010-03-01 Thread Joseph Morgan
True...we still don't have a clue what the OP's really trying to do... -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, February 26, 2010 5:44 PM To: Tomcat Users List Subject: Re: Java programm to Shutdwon the tomcat server On 26/02/2010 18:40, Joseph Morgan wrote

RE: Java programm to Shutdwon the tomcat server

2010-03-01 Thread Joseph Morgan
Oops.. should have read the thread... I spoke too soon -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: Monday, March 01, 2010 7:06 AM To: Tomcat Users List; p...@pidster.com Subject: RE: Java programm to Shutdwon the tomcat server True...we still

Re: Java programm to Shutdwon the tomcat server

2010-03-01 Thread Pid
...@ignitesales.com] Sent: Monday, March 01, 2010 7:06 AM To: Tomcat Users List; p...@pidster.com Subject: RE: Java programm to Shutdwon the tomcat server True...we still don't have a clue what the OP's really trying to do... -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday

Re: Java programm to Shutdwon the tomcat server

2010-03-01 Thread dBenjamin
I using customize icon to launch my application before starting the tomcat my java program will check and then it will allow to start the tomcat otherwise it will change the port and server will get start. I am validating shutdown port using Socket socket = new Socket(127.0.0.1,JVMPort);

Re: Java programm to Shutdwon the tomcat server

2010-03-01 Thread André Warnier
dBenjamin wrote: Thanks for helping... Can you please find my scenario? We could probably help better if we understood exactly what you are trying to achieve (and why), which is not very clear at the moment. 1. I am using windows Environment. Ok, but are you running Tomcat as a

Re: Java programm to Shutdwon the tomcat server

2010-02-28 Thread dBenjamin
Thanks for helping... Can you please find my scenario? 1. I am using windows Environment. 2. I am using tomcat 6 binary distribution versions here we cannot get pid from the windows. 3. For my requirement before starting the tomcat server I need to verify the port availability if

Re: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Pid
On 26/02/2010 04:29, dBenjamin wrote: Thanks for helping developers… Can you please help me I am facing problem to shutdown the tomcat server in windows platform (xp, vista, windows7). if you click CTRL+ C in the tomcat console window, server getting shutdown. Like that is any specific command

RE: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Joseph Morgan
You can send any system command through a Java program. Are you developing or working with some kind of management tool and you want to know how to program it to stop Tomcat??? It depends on if you are running tomcat as a service or not, but either way, you're going send your commands from

Re: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Pid
On 26/02/2010 12:59, Joseph Morgan wrote: You can send any system command through a Java program. Are you developing or working with some kind of management tool and you want to know how to program it to stop Tomcat??? It depends on if you are running tomcat as a service or not, but either

RE: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Joseph Morgan
Even better! -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, February 26, 2010 8:00 AM To: users@tomcat.apache.org Subject: Re: Java programm to Shutdwon the tomcat server On 26/02/2010 12:59, Joseph Morgan wrote: You can send any system command through a Java

Re: Java programm to Shutdwon the tomcat server

2010-02-26 Thread André Warnier
I suggest the following : I) If tomcat is running as a Windows service, then you should shut it down by stopping the Windows Service (and not by stopping down Tomcat directly). To stop the Tomcat-related Windows Service, there are two methods : a) use the Services applet of Windows (e.g.

RE: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Joseph Morgan
Runtime.getRuntime().exec(...) to get it going again from within the Java UI. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Friday, February 26, 2010 12:10 PM To: Tomcat Users List Subject: Re: Java programm to Shutdwon the tomcat server I suggest the following : I

Re: Java programm to Shutdwon the tomcat server

2010-02-26 Thread Pid
/api/org/apache/catalina/startup/Embedded.html p -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Friday, February 26, 2010 12:10 PM To: Tomcat Users List Subject: Re: Java programm to Shutdwon the tomcat server I suggest the following : I) If tomcat is running