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(); | } The MBean class is: 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(){ ... } | } | And the MBean is defined in jboss-service.xml as: <mbean code="com.foo.bar.MyService" name=":service=MyService"></mbean> I'm using this MBean on JBoss 3.2.7, and it seems to do the job for the implemented methods, init(), start(), stop() and printSessions(), but when i start the server, JBoss complains about my 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: I've tried to figure out the cause by myself, but now i am out of ideias... Any ideia? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220180#4220180 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220180 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user