and you can have the xmbean name by implementing the MBeanRegistration interface
on the managed resource.
SMS> Querying the MBeanRegistry should work:
SMS> import javax.management.ObjectName;
SMS> import org.jboss.mx.server.ServerConstants;
SMS> import org.jboss.mx.server.registry.MBeanEntry;
SMS> import org.jboss.mx.server.registry.MBeanRegistry;
SMS> Object[] args = {xmbeanName};
SMS> String[] sig = {ObjectName.class.getName()}
SMS> MBeanEntry entry = (MBeanEntry)
SMS> mbeanServer.invoke(ServerConstants.MBEAN_REGISTRY, "get", args, sig);
SMS> Object xmbean = entry.getResourceInstance();
--
Best regards,
julien mailto:[EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user