aspose file tools*
The moose likes JBoss/WildFly and the fly likes Dynamic re-loading of class files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Dynamic re-loading of class files" Watch "Dynamic re-loading of class files" New topic
Author

Dynamic re-loading of class files

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
All,

I would liked to know is it possible to achieve dynamic reloading of class files without re-starting the server.

I believe hot deployment is the ability to deploy the application (new or existing) while the server is running. But i
would liked to load the changes to the class files without restarting the server.

We use a whole lot of EJB's in our application, which makes the restarting process around 8 min.

So i would liked to know is it possible to load the class files dynamically without re-starting the server.

Thanks
Param
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

How are your classes packaged and deployed? With an EAR file? Or within an exploded EAR directory? If you have an EAR file, replacing it with an updated version will redeploy it. If you have an exploded directory, 'touch' the META-INF/application.xml file - this will cause the app to be redeployed.


JBoss In Action
Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
Peter,
We use Ant to move the files to the deploy directory and use touch task to re-start the server, to pick the new files.


But i would liked to know is there anyway we can make the app to pick the new class file without re-starting (through touch task) the application.

The main purpose of why i am looking forward is, restarting the app takes 8 mins.
Since we have lot of EJB's it takes some time to undeploy and re-deploy the EJB's.
And also EJB's are not changed frequently. But we work at the web layer (servlet or Action class). So i would want to know is there any way we can load the latest class file without re-starting the server.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10290
    
168

A related topic


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic re-loading of class files