Hello more or less the same works (just update the beginning of the object name). in tomee just reuse JVM MBeanServer (ManagementFactory etc...), no need of MBeanServerLocator or any other custom MBeanServer.
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-05-13 0:53 GMT+02:00 José Luis Cetina <[email protected]>: > Is there any way to get the jvmroute value from server.xml > > I see this example in JBoos > > MBeanServer server = org.jboss.mx.util.MBeanServerLocator.locateJBoss(); > String jvmRoute = (String)server.getAttribute(new > ObjectName("jboss.web:type=Engine"), "jvmRoute"); > > > Is there a similar way to do this in tomee, is this code a good idea? I > just want to read the jvmroute > and append to each user session. > > Thanks > > -- > ------------------------------------------------------------------- > *José Luis Cetina* > ------------------------------------------------------------------- >
