3 Replies Latest reply on Mar 27, 2009 7:08 AM by ubhole

    Dynamic reconfigurability

    corrado.campisano

      Hi all,

       

      what about dynamic reconfigurability for FUSE ESB / ServiceMix?

       

      Is it possible to change routing (by changing servicemix-bean endpoints, or servicemix-eip configuration, for sample), servicemix-file-* folders and stuff like that, when the ESB is running?

       

       

      It would be ok to stop any SAs involved, of course...

       

       

       

      The way I do something like this (as by now) is:

      - I externalize all the configuration I need dynamically changeable to external property files;

      - I update those files manually;

      - I have to redeploy the SA, since these changes are 'seen' at deployment time only (this because externalized configuration is loaded at deployment time only, I think).

       

       

       

      It would be fantastic to have dynamical reconfiguration tools from servicemix-web console...

       

       

      Am I dreaming?

       

       

       

       

      Thanks for your attention and regards,

      Corrado

       

      Edited by: corrado on Mar 25, 2009 6:54 PM

        • 1. Re: Dynamic reconfigurability
          ubhole

          what about dynamic reconfigurability for FUSE ESB / ServiceMix?

           

          Is it possible to change routing (by changing servicemix-bean endpoints, or servicemix-eip configuration, for sample), servicemix-file-* folders and stuff like that, when the ESB is running?

           

          Surely, but not by only stop/start, what you will need to do is redeploy SA for new configuration to be picked up. (as you mentioned in your post).

           

           

          It would be fantastic to have dynamical reconfiguration tools from servicemix-web console...

           

          I am not sure about servicemix-web console but you can surely use ant task at this stage to start/stop/deploy/undeploy your SA's so you can easily automate them.

           

          Also, Servicemix has JMX support so you should be able to use JMX console to control your stuff and possibly redeploy. 

           

           

          Am I dreaming?

           

          Certainly not and even if you are we need to hear them to make them come true to the extent possible.:)

           

           

          Ulhas

          • 2. Re: Dynamic reconfigurability
            corrado.campisano

            Thanks for the clarification ubhole, but...

             

            ...unfortunately, "my" end users are among the dummiest ones IT works for...

             

            this is the reason I'm embedding ServiceMix in Tomcat and packaging it for being easily installed on winzozz

             

            it's actually a sort of 'deployment framework' I designed, see ftp://80.21.39.197/ServiceMix:

            - sMixEasy_1.0.exe is the 'framework' installer (doc is included);

            - sMixCcbFrt_1.0.exe is the first easily-deployable-SA installer for this 'framework'.

             

            (maybe you want to 'whois 80.21.39.197' first...)

             

             

             

            So, given the SA re-deployment is mandatory, since using Ant (or alikes) is completely out of scope, the only solution I can see is leveraging Tomcat again...

             

            Additional web-apps would allow for handling installed-SAs configuration files, while servicemix-web would allow for re-deployment.

             

             

             

            Anyway, I hope dynamic reconfigurability would be implemented some time in the future, so that ServiceMix/FUSE would get larger market share...

             

             

            Best regards,

            Corrado

             

            Edited by: corrado on Mar 26, 2009 10:38 PM

            • 3. Re: Dynamic reconfigurability
              ubhole

              ...unfortunately, "my" end users are among the dummiest ones IT works for...

               

              this is the reason I'm embedding ServiceMix in Tomcat and packaging it for being easily installed on winzozz

               

               

              I am not suggesting users run the ant task if you are admin or someone else who knows how to use ant you can use the ant task to connect to the remote instance and deploy/undeploy SA. I know it's a painful task compared to few clicks from some GUI console but is doable without enduser intervention if you have JMX enabled and with little more work can even be automated nicely.

               

               

               

               

               

               

              So, given the SA re-deployment is mandatory, since using Ant (or alikes) is completely out of scope, the only solution I can see is leveraging Tomcat again...

               

              Additional web-apps would allow for handling installed-SAs configuration files, while servicemix-web would allow for re-deployment.

              Anyway, I hope dynamic reconfigurability would be implemented some time in the future, so that ServiceMix/FUSE would get larger market share...

               

               

              As I said it can be done remotely using ant tasks.  You can find more about  FUSE ESB documentation relating to deployment in Chapter 6 of deploy_guide

               

              Edited by: ubhole on Mar 27, 2009 11:07 AM