From: Alex S. <ale...@bu...> - 2003-04-11 18:18:44
|
Thanks. I presume the RMI variant will have an overhead, or is the "remote" invocation optimized away, as for a local call to an EJB remote interface? -----Original Message----- From: jbo...@li... [mailto:jbo...@li...] On Behalf Of Scott M Stark Sent: 11 April 2003 18:53 To: jbo...@li... Subject: Re: [JBoss-user] obtaining local ref to MBeanServer An RMI variant if the MBeanServer is availble from the RMIAdaptor binding in JNDI located at jmx/rmi/RMIAdaptor by default. Its set in the jmx-rmi-adaptor.sar/META-INF/jboss-service.xml. Else use the javax.management.MBeanServerFactory: MBeanServerFactory.findMBeanServer(null).iterator().next(); -- xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx Alex Sumner wrote: > I've got an MBean and want to invoke methods on it from an EJB in the > same JVM. What's the correct way to get a reference to the MBeanServer - > is it looked up in JNDI (if so, where?) or is there some static method > somewhere? > > I've been looking through the docs, but all the examples I can find > assume you've already done this and start with server.invoke(...) > > Thanks > > Alex ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ JBoss-user mailing list JBo...@li... https://lists.sourceforge.net/lists/listinfo/jboss-user |