-
1. Re: Cannot view my MBean in JMX-console
dimitris Feb 25, 2005 3:46 AM (in response to jkashyap)It should show up on jmx-console. Are you sure you're not registering the MBean on the client side? Show the code.
-
2. Re: Cannot view my MBean in JMX-console
jkashyap Feb 25, 2005 5:51 AM (in response to jkashyap)MBeanServer server = (MBeanServer)MBeanServerFactory.createMBeanServer (null);
MySubclass mbean = new MySubclass();
ObjectName name = new ObjectName("Jboss.dmonitor:name=SystemUsage");
server.registerMBean(mbean, name); -
3. Re: Cannot view my MBean in JMX-console
dimitris Feb 25, 2005 6:24 AM (in response to jkashyap)Well, this is a typical mistake. You need to create your MBean *on the server side* and access it from the client. You are just creating a local mbean on the client side, so it's normal you see nothing on the jmx-console.
To create an MBean (or service in jboss jargon) the jboss style and deploy it on the server, see
http://www.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService
To remotely access MBean on the server see http://www.jboss.org/wiki/Wiki.jsp?page=HowDoIGetRemoteAccessToMyMBean