tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Francois Arcand <Jeanfrancois.Arc...@Sun.COM>
Subject Re: Queries on Embedded Tomcat Server
Date Wed, 01 Dec 2004 16:15:22 GMT


Mohamed Rafi S wrote:
> 
> Hi Jean,

Jeanfrancois ;-)

> 
> There is no exception getting thrown, verified this. Immediately after 
> appLoader.startTomcat(), if I give a Thread.sleep(10000), then till that 
> duration, I am able to access http://localhost:8080/ successfully 
> without any issue.
> 
> So, any pointers on how to make this always available ?


I recommend you start a Thread that start Tomcat and lock on an object. 
When you stop you app, just unlock thin thread.

Hope that help

-- Jeanfrancois


> 
> Thanks,
> Mohamed Rafi S
> 
>>
>>
>> Mohamed Rafi S wrote:
>>
>>> Hi All,
>>> I need to run a Embedded Tomcat server in my application. For this, I 
>>> checked the sample code and docs, and did the needful.
>>> My application's main class is ApplicationLoader.java, and in the 
>>> main() method of my   ApplicationLoader.java, I am doing a 
>>> appLoader.startTomcat(). However, the server which comes up 
>>> terminates once the main method is complete. How do I make the server 
>>> run continously ?
>>> Any pointers into this ?
>>
>>
>> How do you start the Emnbedded Tomcat? Are you sure there is no 
>> swallowed exception?
>>
>> -- Jeanfrancois
>>
>>
>>> Thanks,
>>> Rafi SM
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message