[jboss-dev-forums] [Design of POJO Server] - Re: ServiceControllerContext.target is null via @JMX

adrian@jboss.org do-not-reply at jboss.com
Fri Aug 8 07:50:13 EDT 2008


Yes. I hadn't considered that somebody would expose their POJO via
@JMX and then expect POJO injection to work using the JMX name
instead of the POJO name. ;-)

Can you see if there is an easy way to issue a warning for this case?
It looks like bad practice to me. I also think it is shows some confusion.

It should work with the current configuration of JBossAS, 
but we may in the future come up with a JBossAS config where there is
no JMX exposed. 

Which means @JMX won't map to an aspect that registers pojos in the MBeanServer
so there will be no ServiceControllerContext for the jmx name, just the POJO
ControllerContext.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169571#4169571

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169571



More information about the jboss-dev-forums mailing list