I have a class that is a facade for an MBean. The facade has many static methods. The facade is there for a couple of reasons.
1) To hide the proxy create code
2) The static methods are very convenient in the inplementation
My issue is that when jboss deploys the static methods are loaded and of course I have to have a reference to the MBean, well it blows up when trying to create the reference(Exception below).
How can I get around this? Does this mean I can't use static methods to reference an MBean? I am assuming I am doing something incorrect, but I have been spinning my wheels on this for a while.
Thanks in advance
2004-05-12 17:14:03,777 ERROR [STDERR] org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: MyDomain:service=MyService; - nested throwable: (javax.management.InstanceNotFoundException: MyDomain:service=MyService is not registered.)
2004-05-12 17:14:03,779 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:79)
2004-05-12 17:14:03,780 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:283)
2004-05-12 17:14:03,781 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:248)
2004-05-12 17:14:03,783 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:217)