This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Modifying source code without restarting JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Modifying source code without restarting JBOSS" Watch "Modifying source code without restarting JBOSS" New topic
Author

Modifying source code without restarting JBOSS

Jaaouane Aymen
Greenhorn

Joined: Sep 22, 2009
Posts: 29
Hello, i am a beginner and i am doing my fisrt seam application.
I am working with eclipse ganymede 3.4.2, jboss tools for ganymede
The version of JBOSS 5.1.0.
but when i change in the source code, i must restart JBOSS each time i modify my code
and it represents a nightmare for me. is there a solution that jboss reloads the context without restarting?
Is the JBOSS must restart eachtime? i was working withTomcat and i do not need to restart it after modifying my java classes
except when modifying web.xml.
Francesco Marchioni
author
Ranch Hand

Joined: Sep 22, 2003
Posts: 191
Hi Jaaouane,
no restarting the application server is not at all needed and it would be an overkill.
Redeploy your application (.war) by simply going on the Eclipse server window and choose to "Publish"
the application. Sometimes I've found this option not too responsive so I had to use the "Clean" option which
delete the deployed application at first.
Whatever you choose you need to replace the deployment unit with a new one- if you have an exploded application you don't even need to....it's enough to "touch" the web.xml

hope it helps
Francesco
MyJBossSite


WildFly 8 Administration Book - JBoss Tutorials
 
GeeCON Prague 2014
 
subject: Modifying source code without restarting JBOSS