You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "James H. H. Lampert" <ja...@touchtonecorp.com> on 2016/03/15 01:25:57 UTC

Starting and stopping contexts programmatically

The only ways I know of to start and stop individual webapp contexts is 
to (1) start and stop them from the manager, or (2) start and stop 
Tomcat itself.

Is there a way, from the back end, to start and stop individual contexts?

--
James H. H. Lampert

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


Re: Starting and stopping contexts programmatically

Posted by Theo Sweeny <th...@avios.com>.
Hi James,

________________________________________
From: Mark Thomas <ma...@apache.org>
Sent: 15 March 2016 09:21
To: Tomcat Users List
Subject: Re: Starting and stopping contexts programmatically

On 15/03/2016 00:25, James H. H. Lampert wrote:
> The only ways I know of to start and stop individual webapp contexts is
> to (1) start and stop them from the manager, or (2) start and stop
> Tomcat itself.
>
> Is there a way, from the back end, to start and stop individual contexts?

You could do that via JMX.

Mark


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


You can also call Tomcat Manager via Curl -

curl -X GET http://<username>:<password>@<domain>:<port>/manager/text/start?path=/<webapp-name>%23%23v1.0.9

The %23 implies #

E.G - my-web-service##v1.0.9

Theo
Avios Group (AGL) Ltd is a limited company registered in England (registered number 2260073 and VAT number 512566754) whose registered address is Astral Towers, Betts Way, London Road, Crawley, West Sussex RH10 9XY . Avios Group (AGL) Limited is part of the IAG group of companies This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

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


Re: Starting and stopping contexts programmatically

Posted by Mark Thomas <ma...@apache.org>.
On 15/03/2016 00:25, James H. H. Lampert wrote:
> The only ways I know of to start and stop individual webapp contexts is
> to (1) start and stop them from the manager, or (2) start and stop
> Tomcat itself.
> 
> Is there a way, from the back end, to start and stop individual contexts?

You could do that via JMX.

Mark


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