Nope. The MBean becomes immediately available after registration. You should guard inside your mbean code if you don't want to receive calls, e.g. (assuming you extend ServiceMBeanSupport, so the baseclass keeps track of state):
| private void checkStarted() | { | int state = this.getState(); | | if (state != ServiceMBean.STARTED) | { | throw new IllegalStateException("Cannot perform operations unless service is started"); | } | } | then at your operations: | public void someOperation(...) | { | checkStarted(); | ... | //do whatever | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874870#3874870 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874870 ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user