tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Ramin <jeff.ra...@singlewire.com>
Subject Re: possible to define/deploy a context but not start it?
Date Tue, 01 Jun 2010 18:01:50 GMT
On 06/01/2010 11:46 AM, Caldarale, Charles R wrote:
>> From: Jeff Ramin [mailto:jeff.ramin@singlewire.com]
>> Subject: Re: possible to define/deploy a context but not start it?
>>
>>      
>>> Deploying a webapplication, though, always starts it.
>>>
>>> If a webapplication is included as a<Context>   element in server.xml
>>> (usually not recommended), it is always deployed and started when
>>> server starts, regardless of deployOnStartup option.
>>>
>>> Besides the documentation, you may also want to look at the archives
>>> of this list.  deployOnStartup/autoDeploy were discussed several
>>> times.
>>>
>>>        
>> I want to start an application via JMX. Thus, tomcat needs to be
>> running, so that the JMX agent is available. But, I don't want my
>> web application to be available until it gets explicitly started
>> as the result of a JMX invocation of a WebModule bean.
>>      
> Konstantin already gave you the answer:
>    
>>> It is possible to turn off auto-deploy (autoDeploy, deployOnStartup),
>>> i.e. the webapplication will be present in webapps folder, but it will
>>> not be running, nor will it be listed by Tomcat Manager.
>>>
>>> Deploying a webapplication, though, always starts it.
>>>        
> Your best bet is to leave the application _undeployed_ until you're ready for it, then
deploy it.
>    

Yes, I've done this. However, I don't see a way to deploy/start my app. 
If I start
jconsole when starting tomcat like this, the WebModule beans I would use 
to deploy/start
my app are not present.

-- 
Jeff Ramin
Software Engineer
Singlewire Software
2601 W Beltline Hwy #510
Madison, WI 53713

Phone Direct - 608.661.1172
www.singlewire.com


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


Mime
View raw message