Re: delaying context reload

2004-03-16 Thread Cindy Ballreich
At 08:00 PM 3/15/04 -0500, Christopher Schultz wrote:
Run Plugin:c:\eudora\attach\Re delaying context reload.ems 0880.0002


Hi Chris,

No, I'm not using Ant (yeah, yeah, I know I should...) This is my local development 
machine where I have WEB-INF/classes set as my output directory when I compile. This 
has worked fine, but as things have become more complex the server reload has started 
to beat the compile. I was just hoping to find a way to delay the reload a few 
seconds. Since none of the responses I recieved offered a solution, I guess I should 
assume that this is not possible with this version of Tomcat.

BTW. I couldn't open your PGP signed message and had to read it in the archive.

Cindy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: delaying context reload

2004-03-16 Thread Justin Ruthenbeck
Cindy,

If this is a problem for you, turn reloading off in your context.xml and 
use the manager app's Reload command instead.  This command can be 
executed either through hitting a URL, using the manager html pages, or 
(best) through an Ant command.  Doing this means the reload only happens 
when you request it.  It's a standard way to do things.

Alternately, change the interval at which reload checks happen (I don't 
use this, so I don't know where this is set).  If you double the reload 
check time, you should halve the number of time you have the problem (and 
double the average wait for a reload).

In short, use the manager.  :)

justin

At 09:23 AM 3/16/2004, you wrote:
At 08:00 PM 3/15/04 -0500, Christopher Schultz wrote:
Run Plugin:c:\eudora\attach\Re delaying context reload.ems 0880.0002

Hi Chris,

No, I'm not using Ant (yeah, yeah, I know I should...) This is my local 
development machine where I have WEB-INF/classes set as my output 
directory when I compile. This has worked fine, but as things have 
become more complex the server reload has started to beat the compile. I 
was just hoping to find a way to delay the reload a few seconds. Since 
none of the responses I recieved offered a solution, I guess I should 
assume that this is not possible with this version of Tomcat.

BTW. I couldn't open your PGP signed message and had to read it in the 
archive.

Cindy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


delaying context reload

2004-03-15 Thread Cindy Ballreich
I like Tomcat's ability to reload a context when a change is made to one of my 
application's classes, but I'm having a problem with it reloading before the class has 
finished compiling. Is there a way to delay the reloading until all the files are 
ready? 

I'm using Tomcat 4.1.24

Thanks

Cindy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: delaying context reload

2004-03-15 Thread Christopher Schultz
Cindy,

I like Tomcat's ability to reload a context when a change is made to
one of my application's classes, but I'm having a problem with it
reloading before the class has finished compiling. Is there a way to
delay the reloading until all the files are ready?
I highly recommend doing all your compilation in a 'local' directory and
then using a tool like ant (I hope you're already using ant!) to copy
all the updated files.
This allows you to attempt a compile without disturbing a running
server. (For example, if some of your files compile, but others don't
you could disable your server -- even if it is only a test server).
Generally, the copy will take less time that the compile ;)

Hope that helps,
-chris


signature.asc
Description: OpenPGP digital signature


Re: delaying context reload

2004-03-15 Thread Christopher Schultz
Tim,

So what do you suggest in the case of copying a war file that takes 15
seconds to copy?
That's a good question. I have a couple of thoughts:

1) When does the date of the inode get set -- at the beginning of the 
copy or at the end

2) Isn't there a way to set the time interval used to check for updates?

3) If you're hot-deploying WAR files, shouldn't you be using the Tomcat 
deployment tool instead of just copying it in there? ;)

(I don't know anything about Tomcat's WAR deployment -- I use ant to war 
and unwar my apps to do hot deployment.)

-chris


signature.asc
Description: OpenPGP digital signature


RE: delaying context reload

2004-03-15 Thread Rob Ross


 -Original Message-
 From: Christopher Schultz [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 15, 2004 5:23 PM
 To: Tomcat Users List
 Subject: Re: delaying context reload
 
snip
 
 3) If you're hot-deploying WAR files, shouldn't you be using 
 the Tomcat 
 deployment tool instead of just copying it in there? ;)
 
 (I don't know anything about Tomcat's WAR deployment -- I use 
 ant to war 
 and unwar my apps to do hot deployment.)
 
 -chris
 

What do you do with your WARs after you have built them? I.e., how do you
deploy them?

Rob

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]