10 Replies Latest reply on Jul 12, 2010 11:29 AM by peterj

    mbean configuration

    luke_m

      Hi,

      I'm working on JbossMobicents 5.1.0, and I'm trying to configure some ApplicationServer parameters via jmx Mbeans.

      I've problem that mbean configurations doesn't persist, and when Jboss has been restarted I've lost my configuration

       

      thanks in advance

      luke

        • 1. Re: mbean configuration
          peterj

          Then you should instead edit the *-service.xml file(s) containing the mbeans you want to change.

          • 2. Re: mbean configuration
            luke_m

            Hi Peter,

             

            I don't know if modifying a  *-service.xml file implies that related jboss mbeans are updated runtime or a jboss restart is required.

             

            Anyway I think that it's a little bit complicated edit files, and it's strange that jboss jmx-console can't used to configure attributes in persistent way

             

            thanks in advance

            luke

            • 3. Re: mbean configuration
              peterj

              Changing a *-service.xml causes its timestamp to be updated and on the next deployment scan, the MBeans in the file will be redeployed. So, yes the changes will take effect durign runtime. Of course you have to be careful when doing this because of MBean dependencies.

              • 4. Re: mbean configuration
                luke_m

                So, I don't know if I correctly understood:  Mbean attributes modified via jmx-console aren't saved on related files, while if I change some attributes on a *-service.xml then Mbean will be updated. Anyway this could be not so easy ...I've to look for files in various folders and it's possible to corrupt an xml file...

                 

                I don't know so much about jboss cluster configuration, but I suppose that there are mbeans shared in cluster and so maybe I've to reply changes on

                every server file

                 

                thanks in advance

                l

                • 5. Re: mbean configuration
                  peterj

                  You have understood correctly.

                   

                  Several years back, before the first 5.0 beta, I worked with the JBoss team on an earlier attempt at building a new admin console (before they went with Embedded Jopr) and we used XSLT transforms and a deployment service to create new or modify existing *-service.xml files. You can still see the XSLT templates at docs/examples/varia/deployment-service/templates

                  • 6. Re: mbean configuration
                    luke_m

                    So have I to use Jopr (I don't know what exactly is) to add an admin/configuration console to jboss?

                    thanks

                    luke

                    • 7. Re: mbean configuration
                      peterj

                      I wrote "Embedded Jopr", not "Jopr". Have you tried googling it? It comes out as the first hit. And yes it is an admin console but it does not provide access to every configuration option.

                      • 8. Re: mbean configuration
                        peterj

                        And by the way, Embedded Jopr is already part of JBoss AS 5.1.0, try http://localhost:8080/admin-console

                        • 9. Re: mbean configuration
                          luke_m

                          Ok, so I've to use only AdminConsole or modify directly *-service.xml to configure something.

                          Do you know if it's planned in future jboss releases to permit configuration also via jmx-console?

                           

                          thanks

                          l

                          • 10. Re: mbean configuration
                            peterj

                            Probably not. The jmx-console is a UI to the MBean Server, and that server does not keep track of the *-service.xml files from which the mbeans are initialized (because the MBean Server is a generic Java concept while the *-service.xml files are JBoss-specific).