Is there any way to update jars without restarting the jboss server ?

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7
    • 6

Issue

  • If a common jar is changed, all the shared libraries with a reference to that jar detect the change and restart the app (EAR) not the JBoss server , is it possible ?

Resolution

  • If Updated modules/jar modified then need to restart the JBoss to take effect.

Workaround: Try to create a NEW module (or module slot) at runtime and then modify the applications to depend on that. For instance, create a custom module for example "mymodule" and applications depend on mymodule slot="1.0". Using the CLI create a mymodule slot="1.1" while JBoss is running, then modify the jboss-deployment-structure.xml on application to point to the new slot="1.1" and redeploy the application. Since have multiple applications so would probably need to automate changing the jboss-deployment-structure.xml files. It's more cumbersome than just changing the module, beyond this don't have any other method that avoid a JBoss restart.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments