File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Context Reloading in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Context Reloading in JBoss" Watch "Context Reloading in JBoss" New topic

Context Reloading in JBoss

Mike Thomson
Ranch Hand

Joined: Nov 07, 2007
Posts: 121
I am using JBoss 4.2.2.GA with MyEclipse. In the web project, after deployment if I had done any changes to JSP, it
s getting reflected without redeploying the war. But whenever I done changes to java and build it, the context is not reloading automatically. How can we do it for JBoss with MyEclipse? I need to redeploy it for each time I am changing the java file and it's very teadous for the development. Any one help on this?
Peter Johnson

Joined: May 14, 2008
Posts: 5852

The only way to get Java file changes recognized is to redeploy the web app. One way to redeploy the app is to 'touch' the web.xml file. Did you install JBoss Tools into Eclipse? It provides some JBoss-specific Java EE projects that should automatically redeploy the app when you make Java changes. (I know that Eclipse comes with some JBoss projects, but I don't know if they handle the redeployment properly.)

JBoss In Action
I agree. Here's the link:
subject: Context Reloading in JBoss
jQuery in Action, 3rd edition