It's not a secret anymore!*
The moose likes JBoss/WildFly and the fly likes  Hot code replacement of xml files using JBOSS IDE for Eclipse 2.0  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark " Hot code replacement of xml files using JBOSS IDE for Eclipse 2.0  " Watch " Hot code replacement of xml files using JBOSS IDE for Eclipse 2.0  " New topic
Author

Hot code replacement of xml files using JBOSS IDE for Eclipse 2.0

Phani Chaitanya
Greenhorn

Joined: Jan 16, 2012
Posts: 9
Hi,
Im looking for a way to achieve hot code replacement of xml files. Here im not talking about configuration files like struts-config.xml or web.xml. Im talking about user defined xml files, which i parse using digester. Generally if i make any change to the xml files i have to undeploy it, rebuild using ant tool and redeploy it. Im currently using JBOSS IDE for Eclipse 2.0.

Thanks in advance.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

Does your code check to see if the xml file has been changed, and then reload it? If so, then you can accomplish this using an exploded deployment and simply copying over the file into the apps exploded deployment directory.

If you code does not check if the xml file has been updated, then nothing you do short of redeploying the application will work.


JBoss In Action
 
wood burning stoves
 
subject: Hot code replacement of xml files using JBOSS IDE for Eclipse 2.0