Solved

automatically reload of a web application in jboss

Posted on 2009-04-06
8
1,755 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FileMaker 13 Port 80 Problem on server 2012 12 193
JRE and project layout option 6 80
Jar file built for jre 6. What happens if i migrate to jre 8? 2 76
plusOut java challenge 40 171
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…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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