In actual work, we often encounter this situation: we suddenly find that the factory system has a bug that must be modified. To fix this bug, we only need to modify a Java class, however, the application server runs multiple production systems at the same time and cannot be restarted easily. What should I do?
There is a simple method in JBoss as to use JMX-console. The specific steps are as follows:
* Log on to the JMX-console.
* Search for service = maindeployer
* Click Service = maindeployer to enter the mbean view.
* Find the listdeployedasstring method and click invoke. The system lists the applications deployed on the application server, finds the factory system to be dynamically deployed, and copies the strings after "url =;
* Return to the mbean view, find the redeploy method, paste the string copied in the previous step into the URL input box, and click invoke. The application server will redeploy the production system to be dynamically deployed;