How to reload an application WAR in JBoss using twiddle utility?
To enable JMX access to JBoss, add the following arguments to JBoss VM args:
-Dcom.sun.management.jmxremote
The above line will enable only local monitoring. To enable remote JMX connection we need to specify the port which the JMX server will listen for remote connections.
-Dcom.sun.management.jmxremote.port=9004 (or any other port number)
The JMX remote connection is secured by default. To disable the authentication or the SSL in the JMX remote connection:
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
This, I guess, needs to be added in [JBOSS_HOME]/bin/run.conf file.
Reload a WAR
If JBoss is running in Unix/Linux machines, the following command will do the reload.
[JBOSS_HOME]/bin/twiddle.sh invoke jboss.web:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/[App_Name] reload
About this entry
You’re currently reading “How to reload an application WAR in JBoss using twiddle utility?,” an entry on Singaram's Tech Musings
- Published:
- June 19, 2011 / 10:33 AM

No comments yet
Jump to comment form | comment rss [?] | trackback uri [?]