<snip>
No container that I know of lets you selectively replace classes that have
already been loaded into the class loader, because Java's class loader
API doesn't support unloadClass() or replaceClass().
</snip>

I use the Sysdeo plugin for eclipse with tomcat and it lets me make minor
modifications to code 'on the fly' while Im debugging stuff.

Obviously this sort of thing is far from a 'full-arsed' solution in that
anything that changes the interface (or needs to reload static stuff etc...)
is no-go, but I am rather curious as to this is achieved in the absence of a
classloader replaceClass() call?

As for all this being out of struts scope Im definately +1 on that!

-----Original Message-----
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sent: Monday, 3 May 2004 14:41
To: Struts Users Mailing List
Subject: Re: Way to reload struts Action classes in WebLogic8.1


Michael McGrady wrote:

> Isn't it true, Craig, that this is not a problem for hot deploy of the
> classes that do this.  If you have other classes that do not do this,
> then they cannot be hot deployed.  But, what difference does that
> make?  If someone wants to hot deploy them, they can redesign the
> class.  The more I think about it, the less of a problem this seems to
> be.  Am I missing something here?
>

Most containers (but no guarantees, since it's not in the specs) will
know how to pick up a new class that has never been compiled before.  No
container that I know of lets you selectively replace classes that have
already been loaded into the class loader, because Java's class loader
API doesn't support unloadClass() or replaceClass().

Solving 1% of the problem doesn't help -- it only misleads people.  See
my response in the other thread for a very common Struts use case that
doesn't work with your approach.

> Michael


Craig



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



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

Reply via email to