1. We made an interface, Action, which the present Struts Action (renamed, say, "ActionImpl") implemented.
2. We created a daemon ActionFactory which loaded actions from outside the CLASSPATH using a URLClassloader, etc., and which did not reference the implementation(s) but only the interface.
3. We created a method in the main(String [] params) for the web container which allowed us to reload using the ActionFactory.
Wouldn't that work with very little effort?
Michael McGrady
At 10:15 PM 5/1/2004, Craig R. McClanahan wrote:
Inamdar, Anil - Cons wrote:
No. Java provides no way to replace a class (loaded by a particular class loader) with a modified version, without throwing away the entire class loader. That's what normally happens when you reload a webapp.Hello, Is there a way to reload Actions in Weblogic without redeploying the web application.
I don't know about Weblogic, but Sun's app servers (and Tomcat) have "reload" options that are *much* faster than the undeploy/redeploy cycle it sounds like you are using. Check the docs.I have the servlet reloading enabled , but weblogic doesnt seem to recognize the changes to the Action classes and throws a ClassCastException. So every small change I make, I have to redeploy the Web app which makes the whole development process slow.
Craigthanks Anil
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]