Re: Deploy Dynamic Contexts

2010-10-07 Thread Ronald Klop




Op donderdag, 7 oktober 2010 11:49 schreef Rob Gregory 
:


 


Hi Tomcat Community,

 


Does anyone know if it is possible to dynamically create contexts on
demand. I have a requirement to be able to ship a single application.war
file and create multiple contexts from this without manually using the
manager application etc.  Tomcat is the latest version 6.0.29.

 


Dare I ask if it is possible to extend the manager servlet to achieve
this deployment task?

 


Thanks in advance

Rob

 








You can de a lot with JMX. But I have never used it myself for deploying 
context, so can't give you any advise about that.
http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html

Ronald.



RE: Deploy Dynamic Contexts

2010-10-07 Thread Rob Gregory
Thanks Chuck,

After thinking about it some more I realise the servlet approach is the
wrong time to tackle this issue. I will copy the contexts at
installation time as we use installshield/install anywhere deployment
and this makes much more sense. 

Regards,
Rob

 
> > I have a requirement to be able to ship a single application.war
> > file and create multiple contexts from this without manually using
> > the manager application
> 
> So use the manager app automatically.  Whatever you choose as the
trigger for
> deployment can call the non-GUI version of the manager app, or use any
other
> mechanism to copy and rename the .war file of interest.  No servlets
need to
> be extended.
> 
> http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
> http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


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



RE: Deploy Dynamic Contexts

2010-10-07 Thread Caldarale, Charles R
> From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] 
> Subject: Deploy Dynamic Contexts

> I have a requirement to be able to ship a single application.war
> file and create multiple contexts from this without manually using
> the manager application

So use the manager app automatically.  Whatever you choose as the trigger for 
deployment can call the non-GUI version of the manager app, or use any other 
mechanism to copy and rename the .war file of interest.  No servlets need to be 
extended.

http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


 


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



Deploy Dynamic Contexts

2010-10-07 Thread Rob Gregory
Hi Tomcat Community,

 

Does anyone know if it is possible to dynamically create contexts on
demand. I have a requirement to be able to ship a single application.war
file and create multiple contexts from this without manually using the
manager application etc.  Tomcat is the latest version 6.0.29.

 

Dare I ask if it is possible to extend the manager servlet to achieve
this deployment task?

 

Thanks in advance

Rob