2 Replies Latest reply on Jun 28, 2013 4:40 AM by dako_t

    EAP 6.1: update existing static module

    dako_t

      Hi all,

       

      I have an existing static module and an jar deployment which works with this module. But after some refactoring I have to add some dependencies to the static module. But without restarting the server the changes are not loaded by the static module. I have to restart the server and then it works. A workaround is to set a new version (slot) to the static module but this requires a change in the jboss-deployment-structure.xml of all dynamic modules which uses this static module.

       

      How can I update a static module at runtime? Is it possible?

       

      Best regards

        • 1. Re: EAP 6.1: update existing static module
          wdfink

          No, all stuff in the module directory is not meant to replaced dynamic. The only option is to undeploy all applications which depends on, replace the modules and deploy tha app's again.

          In this case the module is unloaded. The other possibility is what you describe.

           

          Beside from the technical difficulty, if you share a module it will not good to replace it (dynamic or static) without knowledge what the effect to all applications is.

          So the most common way from my experience is to create a new version to be sure that existing app's are not effected. But that are my two cents.

          1 of 1 people found this helpful
          • 2. Re: EAP 6.1: update existing static module
            dako_t

            Thank you for the info.