"jhalliday" wrote : That thread dump is caused by my code. That means my
object's constructor function is being invoked twice. I don't care what's
doing it, I just want it to stop :-)
The double construction is because AOP is creating an instance proxy
as you have an instance annotation. The @JMX only applies
to that instance not all instances your class.
Try doing a System.out.println(getClass()) where you dumpStack()
and you'll see the class is different.
Either, move the @JMX to be an annotation on your class (thus removing the
need for the instance proxy) - a simple way to do this would be to have
a subclass in the JBossAS project with that annotation.
Or use the MBeanExporter so you don't have instance annotations.
In practice we don't need an instance proxy for the @JMX annotation
so we should probably look at creating a meta annotation
to exclude @JMX from the decision as to whether an instance proxy is required.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140167#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...