This content has been marked as final.
Show 4 replies
-
-
2. Re: Mbean examples
andrewi Oct 12, 2005 6:13 PM (in response to andrewi)I am still missing something. I have a simple MBean to pass a value back to the EJB. I'm using JB 4.0.2.
For instance I follow the trailblazer example and I getException in thread "main" java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(Unknown Source)
at org.jboss.mx.util.MBeanServerLocator.locate(MBeanServerLocator.java:67)
at org.jboss.mx.util.MBeanServerLocator.locate(MBeanServerLocator.java:80)
at client.XMLClient.main(XMLClient.java:52)
I am hot deploying and know the mbean is started.
Please help as I am getting absolutely nowhere.
thanks -
3. Re: Mbean examples
darranl Oct 13, 2005 1:47 PM (in response to andrewi)Post the code you are executing.
-
4. Re: Mbean examples
andrewi Oct 13, 2005 4:27 PM (in response to andrewi)the following snippets are based on the Jboss trailblazer
MBeanServer server = MBeanServerLocator.locate(); jfrman = (jfrManager) MBeanProxyExt.create( jfrManager.class, "jfr:service=manager", server);
@Service (objectName="jfr:service=manager") public class jfrManager implements jfrManagerMBean{ private boolean started;
@Management public interface jfrManagerMBean { public void start() throws Exception; public void stop () throws Exception;