You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2009/08/03 23:57:21 UTC
Re: Deploying grails application
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Juan,
On 7/30/2009 4:39 PM, Juan Pablo Romero Méndez wrote:
> It turned out there is some delay between clicking the link to deploy
> and the application being available. I somehow expected this process
> to be almost instantaneous.
I won't use the manager app, so I've never really noticed that the
deployment process is not synchronous. I'm not surprised, though: the
manager app is probably just saying to Tomcat "please deploy this
application". Tomcat responds by saying "okay, I'll do my best" and then
the manager app responds to you (the user). Tomcat does the deployment
at its leisure.
> By the way, what is the preferred way to deploy war files to a tomcat
> installation? from the admin console? copying the file directly?
It all depends on your environment, really. We only do webapp
deployments when we do a release... maybe every 3-6 months. Since we
don't need any fancy continuous service or anything like that, we just
shut down Tomcat, delete the deployment directory, unwar the new
version, and start Tomcat again.
Your requirements may warrant a more complicated solution.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkp3XUEACgkQ9CaO5/Lv0PCLrACgjsZLNAEoMrSS7zYDGoZaiROq
oWkAn0eJhy3vCn7fS0Xt5X5Ni28rEbQg
=l2GS
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Deploying grails application
Posted by Mark Thomas <ma...@apache.org>.
Christopher Schultz wrote:
> On 8/3/2009 6:06 PM, Mark Thomas wrote:
>> Nope. Deployment via the manager app is synchronous. Time taken to
>> deploy will depend how big the war is and how long your app takes to start.
>
> Good to know. I wonder what Juan meant when he said "instantaneous":
I think he must have been using one of those 'special' computers that
have infinite CPU, infinite storage and infinite memory where everything
happens instantly :)
> I had assumed that the response came back from the server, but the app
> wasn't yet deployed. Maybe he thought that as soon as the mouse was
> clicked, the application would immediately be available, rather than
> having to wait until the response was received.
Maybe.
> Is there a possibility for an asynchronous deploy? I ask because I've
> seen some (badly written) applications that take several minutes to
> initialize.
Anything is possible.
> In these cases, could a request timeout break a deployment?
No. If you are connected directly to Tomcat, Tomcat won't timeout the
request (your client might). If you go via a proxy it will depend on
proxy settings. Either way, if the request does time out, the deployment
will still carry on and complete normally.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Deploying grails application
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mark,
On 8/3/2009 6:06 PM, Mark Thomas wrote:
> Christopher Schultz wrote:
>> Juan,
>>
>> On 7/30/2009 4:39 PM, Juan Pablo Romero Méndez wrote:
>>> It turned out there is some delay between clicking the link to deploy
>>> and the application being available. I somehow expected this process
>>> to be almost instantaneous.
>>
>> I won't use the manager app, so I've never really noticed that the
>> deployment process is not synchronous. I'm not surprised, though: the
>> manager app is probably just saying to Tomcat "please deploy this
>> application". Tomcat responds by saying "okay, I'll do my best" and then
>> the manager app responds to you (the user). Tomcat does the deployment
>> at its leisure.
>
> Nope. Deployment via the manager app is synchronous. Time taken to
> deploy will depend how big the war is and how long your app takes to start.
Good to know. I wonder what Juan meant when he said "instantaneous": I
had assumed that the response came back from the server, but the app
wasn't yet deployed. Maybe he thought that as soon as the mouse was
clicked, the application would immediately be available, rather than
having to wait until the response was received.
Is there a possibility for an asynchronous deploy? I ask because I've
seen some (badly written) applications that take several minutes to
initialize. In these cases, could a request timeout break a deployment?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkp3YIsACgkQ9CaO5/Lv0PDYnACfeJBiP6tblTaLSDYZwmT0C2wU
I+wAnjxAppfwjaoBJqhUMXlp/9Xt2sip
=6t5o
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Deploying grails application
Posted by Mark Thomas <ma...@apache.org>.
Christopher Schultz wrote:
> Juan,
>
> On 7/30/2009 4:39 PM, Juan Pablo Romero Méndez wrote:
>> It turned out there is some delay between clicking the link to deploy
>> and the application being available. I somehow expected this process
>> to be almost instantaneous.
>
> I won't use the manager app, so I've never really noticed that the
> deployment process is not synchronous. I'm not surprised, though: the
> manager app is probably just saying to Tomcat "please deploy this
> application". Tomcat responds by saying "okay, I'll do my best" and then
> the manager app responds to you (the user). Tomcat does the deployment
> at its leisure.
Nope. Deployment via the manager app is synchronous. Time taken to
deploy will depend how big the war is and how long your app takes to start.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org