Re: WebappLoader and Auto-Detection of Class Changes

2005-06-06 Thread Scott Dudley


Bill,

I added an over-ridden modified() method to my classloader that also 
checks for changes to my added classes folders.  I see that 
WebappLoader.java checks only jars.


Works like a charm.

Thanks.

Bill Barker wrote:


- Original Message -
From: Scott Dudley [EMAIL PROTECTED]
To: tomcat-dev@jakarta.apache.org
Sent: Friday, June 03, 2005 12:46 PM
Subject: WebappLoader and Auto-Detection of Class Changes


 


I extended WebappLoader.java to create a custom classloader to allow me
to append an alternate set of class folders.  The loader works as
intended but I noted that it doesn't detect any changes to these
resources and call Context.reload() as is the case with WEB-INF/classes,
lib, and any WatchedResource entries.  What am I missing.  Looking at
WebappLoader.java and I fail to notice the mechanism which provides said
functionality.

Can someone point me in the right direction?

   



Look at WebappLoader.modified.  That determines if the app should be
reloaded.

 


Many thanks.

--

Regards,

Scott Dudley


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


   





This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication 
in error, please notify us immediately by e-mail and then delete all copies of 
this message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through 
the Internet is not secure. Do not send confidential or sensitive information, 
such as social security numbers, account numbers, personal identification 
numbers and passwords, to us via ordinary (unencrypted) e-mail.


 




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



--

Regards,

Scott Dudley


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



WebappLoader and Auto-Detection of Class Changes

2005-06-03 Thread Scott Dudley


I extended WebappLoader.java to create a custom classloader to allow me 
to append an alternate set of class folders.  The loader works as 
intended but I noted that it doesn't detect any changes to these 
resources and call Context.reload() as is the case with WEB-INF/classes, 
lib, and any WatchedResource entries.  What am I missing.  Looking at 
WebappLoader.java and I fail to notice the mechanism which provides said 
functionality.


Can someone point me in the right direction?

Many thanks.

--

Regards,

Scott Dudley


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