"Suma Rakesh" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>> Hi,
>>
>> I am starting Tomcat through one of my C++ programs on
>> windows 2003 server. I am using Bootsrap
>> org.apache.catalina.startup.Bootstrap.main() method and
>> pass 'Start' and 'Stop' as arguments.
>>

You need to pass in "startd" and "stopd" to run Tomcat in daemon mode.  If 
you pass in "start" and "stop" it will run in "normal" mode.

>> The documentation  read mentioned that this will start
>> tomcat in daemon mode. However, tomcat still listens on
>> port 8005 (another document mentioned that if started in
>> deamon mode Tomcat will not listen on port 8005)  and I am
>> able to send SHUTDOWN command on this porton local machine.
>> I am not able to do a telnet on port 8005 and send SHUTDOWN
>> command from remote machine though.
>>

Yes, this is correct, if started in daemon mode, then Tomcat will not listen 
on port 8005.  However, in daemon mode, control will pass back to your code 
as soon as Tomcat has started.  So you have to be careful that the thread 
that invokes the 'main' method doesn't exit before Tomcat has been shutdown.

>> I would like to block accepting commands on 8005 from local
>> machine as well. Has anyone tried this out? Do you have any
>> pointers ?
>>
>> Regards,
>> Suma.
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to