wood burning stoves*
The moose likes BEA/Weblogic and the fly likes Loading the newly created class at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Loading the newly created class at runtime " Watch "Loading the newly created class at runtime " New topic
Author

Loading the newly created class at runtime

Harish Malavade
Greenhorn

Joined: Jun 08, 2011
Posts: 5
Hi,

In my application, I have a war deployed on weblogic server. On some condition i'm replacing the jar say sample.jar with a new sample.jar by adding few more classes to it and placing them inside lib folder of weblogic. I'm invoking ant task programatically to achieve this. The problem is that To load the new classes from sample.jar it expects me to restart the server. Is there any configuration that i have to do to load the newly created classes from jar without restarting the server. I tried loading class using Classloader inside my program that did not work. Please help me out to overcome this problem.
Thanks in advance,

Harish Malavade
(harish.malavade@t-mobile.com)
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

hot deployment? I am not sure about how to enable this option in weblogic, just check.
Harish Malavade
Greenhorn

Joined: Jun 08, 2011
Posts: 5
thanks for the reply Seetharaman...ya kind of hot deployment...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading the newly created class at runtime