-
1. Re: mbean configuration
peterj Jul 2, 2010 11:42 AM (in response to luke_m)Then you should instead edit the *-service.xml file(s) containing the mbeans you want to change.
-
2. Re: mbean configuration
luke_m Jul 5, 2010 5:39 AM (in response to peterj)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 Jul 5, 2010 2:50 PM (in response to luke_m)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 Jul 6, 2010 6:38 AM (in response to peterj)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 Jul 6, 2010 9:48 AM (in response to luke_m)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 Jul 9, 2010 4:15 AM (in response to peterj)So have I to use Jopr (I don't know what exactly is) to add an admin/configuration console to jboss?
thanks
luke
-
-
8. Re: mbean configuration
peterj Jul 9, 2010 11:03 AM (in response to 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 Jul 12, 2010 4:23 AM (in response to 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 Jul 12, 2010 11:29 AM (in response to luke_m)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).