• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to hot redeploy an app to JBoss?

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using JBoss 5.1 on Mac 10.5.6 (Java 1.6). Right now, I'm using Maven 2.2 as my biuld tool. Does anyone know how to hot-redeploy an app without having to restart the server? I'm noticing that whenever I make a change to my WAR file, install and deploy using

mvn install jboss:deploy

I'm having to restart my JBoss server in order to see those changes. I was hoping someone could suggest a more efficient workflow.

Thanks, - Dave
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JBoss AS, by default, hot deploys applications. By default, it scans the deploy directory every 5 seconds to see if an app was updated, and if so, redeploys it. By "if an app was updated" I mean either:

a) the app is packaged and deployed an an archive file and the archive file's timestamp changed

b) the app is packaged and deployed as an exploded directory, and the key configuration file (web.xml for war, application.xml for ear) has it's timestamp changed.

I have no idea what Maven does with the "jboss:deploy" directive. If there are no responses here, I might move this question to the Maven forum. (Please do not repost this question in that forum.)
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where is this "5 seconds" setting ?
If i want to change it to 30 seconds for instance, which file holds that information ?

Thanks

EDIT:
cannot find this info in jboss-5.1.0.GA.jdk6\server\default\conf\bootstrap\profile.xml and jboss-5.1.0.GA.jdk6\server\default\conf\bootstrap\deployers

Peter Johnson wrote:JBoss AS, by default, hot deploys applications. By default, it scans the deploy directory every 5 seconds to see if an app was updated, and if so, redeploys it. By "if an app was updated" I mean either:

a) the app is packaged and deployed an an archive file and the archive file's timestamp changed

b) the app is packaged and deployed as an exploded directory, and the key configuration file (web.xml for war, application.xml for ear) has it's timestamp changed.

I have no idea what Maven does with the "jboss:deploy" directive. If there are no responses here, I might move this question to the Maven forum. (Please do not repost this question in that forum.)

 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In 5.1.0.GA, this setting (scanPeriod) was move tho the HDScanner bean in server/xxx/deploy/hdscanner-jboss-beans.xml. (Yes, keeping up with "configuration settings' musical chairs" is almost a full-time job.)
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic