Solved

automatically reload of a web application in jboss

Posted on 2009-04-06
8
1,752 Views
Last Modified: 2013-12-02
I have IDE myeclipse and appserver jboss. Myeclipse compiles and copies the editied files over to the deploy area in jboss, but jboss doesnt hot deploy the changes. I can make changes within a method without restarting the server, but if I add methods or change method signaturs, I have to restart the application. I am very new to jboss, but have extensive experience with tomcat, and there you can :
- reload applications in a own admin site
- you can specify in the context if a application should listen for changes, and hot deploy them

I refuse to belive what my new work collegues claims that you have to restart jboss after signature changes, I just wonder how/where to do it. Have googled a lot, and it says that its possible (ant script, jboss console, etc), but doesnt say spesifically where to do it

a small note, the appliction (exploded war) is inside a ear application, I dont know if that makes a difference

thanks for all help
0
Comment
Question by:Vervik
  • 5
  • 3
8 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 24174406
The simplest way in that case just change web.xml file (on unix you can use touch utility for it) inside your exploded war WEB-INF folder. It will cause web application to redeploy
0
 

Author Closing Comment

by:Vervik
ID: 31567068
its seems like that is the only way to solve the reload issue, thats what I found as well when I googled on the topic in the beginning. I miss my tomcat, hehe
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 24180118
actually jboss uses tomcat as web server inside. Probably you could also try to use the way of tomcat
-you can specify in the context if a application should listen for changes, and hot deploy them
0
 

Author Comment

by:Vervik
ID: 24182747
cool, may I ask in which configuration file in the jboss you do this? in tomcat you do it in <TOMCAT_HOME>/conf/<host>/<app_name>.xml by adding a autoreload (or something like that) attribute in the context node. I assume its eqvialent easy in jboss if I know which file to edit?

thanks for all help
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 19

Expert Comment

by:ramazanyich
ID: 24182944
there is a root folder for jboss tomcat in $JBOSS_HOME/server/default/deploy/jboss-web.deployer
In this place there is server.xml, context.xml files. Probably you could change them
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 24182953
Probably following should work:
add reloadable="true" attribute  to the <Context> element in $JBOSS_HOME/server/default/deploy/jboss-web.deployer/context.xml
0
 

Author Comment

by:Vervik
ID: 24199832
perfect, thanks. I will test it tomorrow morning at work. I saw that the application I'm working on is inside a ear package (the ear is a biig content system called Escenic). I tried to "touch" the web.xml file (just made a space and saved, suck the the file timestamp changed), but it didnt reload. I assume this has something to do cause its inside the ear? But thats a other question and thread, I will test the solution you gave on an other application I have at work which run inside jboss

thanks for all help
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 24202190
if you war inside ear then probably you should reload ear too by touching META-INF/application.xml file inside root ear folder
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now