[Design of JMX on JBoss (JBoss/JMX)] - Re: JBAS-5220 - Twiddle not displaying Platform MBean.
by scott.stark@jboss.org
To properly propagate the LazyMBeanServer to all jboss mbeans in preRegister, the LazyMBeanServer has to be passed in to the MBeanServerImpl ctor as the outer argument. Its a one line change to do this in LazyMBeanServer.resetToJBossServer to pass the registeredServer:
| public static MBeanServer resetToJBossServer(MBeanServer server)
| throws Exception
| {
| MBeanServer coreServer = server;
| if( theDelegate != null )
| {
| Class[] sig = {String.class, MBeanServer.class, MBeanServerDelegate.class};
| Object[] args = {defaultDomain, registeredServer, theDelegate};
|
With this change, I can use twiddle to query the platform mbeans:
| [starksm@succubus bin]$ twiddle.sh query 'java.lang:*'
| java.lang:type=Compilation
| java.lang:type=MemoryManager,name=CodeCacheManager
| java.lang:type=GarbageCollector,name=Copy
| java.lang:type=MemoryPool,name=Eden Space
| java.lang:type=Runtime
| java.lang:type=ClassLoading
| java.lang:type=MemoryPool,name=Survivor Space
| java.lang:type=Threading
| java.lang:type=GarbageCollector,name=MarkSweepCompact
| java.lang:type=OperatingSystem
| java.lang:type=Memory
| java.lang:type=MemoryPool,name=Code Cache
| java.lang:type=MemoryPool,name=Tenured Gen
| java.lang:type=MemoryPool,name=Perm Gen
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130258#4130258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130258
18 years, 1 month
[Design of POJO Server] - Re: JMS Topics/Queues in ProfileService
by bytor99999
And the UnitTestCase passes because it has ManagedComponent objects for just QueueServiceMO, but nothing defined in the destinations-service.xml (I take that back, see later in this post)
If I look at the QueueServiceMO ManagedComponent object, the value for its owner ManagedDeployment shows
vfsfile:/C:/JBossServers/jboss-5.0.0.Beta4.marked/server/default/deploy/messaging/destinations-service.xml
Also looking at the ManagedComponents returned by ManagementView.getComponentsByType, is that I am getting 4 Components, 2 for ExpiryQueue and 2 for DLQ, however in all four cases when you call getName() it returns "QueueServiceMO" (which is what I first saw to start this post. ) whereas the componentName shows "jboss.messaging.destination:name=ExpiryQueue,service=Queue"
I think I am starting to confuse myself.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130239#4130239
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130239
18 years, 1 month