Well, your original post implies that you want to somehow find a way to do so 
via the MBeanServer API.  I'm simply saying there is no way.  JMX API 
specifically is designed to avoid allowing what you want (irrespective of the 
fact that you have the ObjectName - that doesn't matter).  You cannot get the 
object reference from the MBeanServer API.

I suppose you could play some games with the MBean's interface itself.  Say, 
have a method on it like "getSelf()" and have it "return this".  You would be 
forced to make an initial JMX API call to invoke that method via 
MBeanServer.invoke() but it would return the object reference and you could use 
that to then make direct calls to it.  Kinda defeats the purpose of JMX, but it 
sounds like that's what you want to do.  Also, this will only work if the 
client is co-located with the MBeanServer - unless you use JBoss/Remoting or 
some other such thing to "remote" the MBean method calls.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874466#3874466

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874466


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to