RE: Conditional Deployment

2015-12-02 Thread Caldarale, Charles R
> From: kidambi madhu [mailto:madhu.kida...@gmail.com] 
> Subject: Conditional Deployment

> We are facing an issue related to Deployment (Specifically Auto Deployment)
> in Tomcat 7

> We have a build process setup from Jenkins tool to build and auto ftp the
> war file to the "Webapps" folder of Tomcat.

> When the application is executing the long running taks, though the war
> file is placed/updated in web apps, tomcat is unable to stop the
> application due to task execution and we are unable to stop Tomcat as well

> We are forced to kill Tomcat and re trigger the Jenkins build.

Try using parallel deployment:
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment

This should let you leave the existing tasks running, but new requests will 
utilize the new version of the webapp.

Obviously, the details of your deployment process will need to change to 
include a version on the .war file.

 - 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



Re: Conditional Deployment

2015-12-02 Thread kidambi madhu
Thanks Chuck for the info.

I will try the Parallel Deployment option you have suggested.

-Madhu

On Wed, Dec 2, 2015 at 7:15 PM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: kidambi madhu [mailto:madhu.kida...@gmail.com]
> > Subject: Conditional Deployment
>
> > We are facing an issue related to Deployment (Specifically Auto
> Deployment)
> > in Tomcat 7
>
> > We have a build process setup from Jenkins tool to build and auto ftp the
> > war file to the "Webapps" folder of Tomcat.
>
> > When the application is executing the long running taks, though the war
> > file is placed/updated in web apps, tomcat is unable to stop the
> > application due to task execution and we are unable to stop Tomcat as
> well
>
> > We are forced to kill Tomcat and re trigger the Jenkins build.
>
> Try using parallel deployment:
>
> http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment
>
> This should let you leave the existing tasks running, but new requests
> will utilize the new version of the webapp.
>
> Obviously, the details of your deployment process will need to change to
> include a version on the .war file.
>
>  - 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
>
>


Conditional Deployment

2015-12-01 Thread kidambi madhu
Hi,

We are facing an issue related to Deployment (Specifically Auto Deployment)
in Tomcat 7

Here is the scenario

We have a build process setup from Jenkins tool to build and auto ftp the
war file to the “Webapps” folder of Tomcat.

In Tomcat we have deployed the SailPoin’t IdentityIQ toll which is a 300mb
war file.

Often the IdentityIQ application will be running few Tasks which take
longer duration (5-6 hours)

When the application is executing the long running taks, though the war
file is placed/updated in web apps, tomcat is unable to stop the
application due to task execution and we are unable to stop Tomcat as well

We are forced to kill Tomcat and re trigger the Jenkins build.

I am looking on few options to configure on the Tomcat server side to check
for any Active sessions OR threads running related to the application and
abort the Redeployment/Auto Deployment

Will it be possible?

Thanks,
Madhu