Hi all,
I'm having a problem with an MBean i've made:
The MBean interface is:
public interface MyServiceMBean { //following are the service methods which needs to be implemented //and are called by the JBoss container //When server starts, first init is called and then start is called public abstract void init() throws Exception; public abstract void start() throws Exception; //When server stops, first stop is called and then destroy is called public abstract void stop() throws Exception; public abstract void destroy() throws Exception; public abstract void printSessions(); }
package com.foo.bar; public class MyService implements MBeanRegistration, MyServiceMBean{ public ObjectName preRegister(MBeanServer server, ObjectName name) throws java.lang.Exception { return new ObjectName(":service=MyService"); } public void postRegister(java.lang.Boolean registrationDone) {} public void preDeregister() throws java.lang.Exception { } public void postDeregister() {} public void destroy() throws Exception {} public void init() throws Exception { ... } public void start() throws Exception { ... } public void stop() throws Exception { ... } public void printSessions(){ ... } }
<mbean code="com.foo.bar.MyService" name=":service=MyService"></mbean>
"server.log" wrote:
10:57:43,103 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: jboss:service=MyService
state: CREATED
I Depend On:
Depends On Me:
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss:service=MyService
state: CREATED
I Depend On:
Depends On Me: