Solved

automatically reload of a web application in jboss

Posted on 2009-04-06
8
1,757 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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
 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tivoli 2 126
script fails when run under WebSphere with SSL enabled 1 489
how to find the dependencies of an EAR or WAR 4 72
how to use external config file with Spring MVC 4 105
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
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.…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

11 Experts available now in Live!

Get 1:1 Help Now