[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Support for @JMX on attributes
adrian@jboss.org
do-not-reply at jboss.com
Tue Jun 24 04:12:21 EDT 2008
"timfox" wrote : FWIW, the actual config I managed to get to work is slightly different to what Adrian suggested (I couldn't get Adrian's syntax to work), but it works and I'm happy with that.
|
|
| | <bean name="MessagingServerManagement" class="org.jboss.messaging.core.management.impl.MessagingServerManagementImpl">
| | <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.messaging:service=MessagingServerManagement",exposedInterface=org.jboss.messaging.core.management.MessagingServerManagement.class)</annotation>
| | <constructor factoryMethod="getServerManagement">
| | <factory bean="MessagingServer"/>
| | </constructor>
| | </bean>
| |
Yours is correct, mine was confused. ;-)
My version says to use the result of MessagingServer.getWhatever() as the factory
when you want to use it as the instance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160121#4160121
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160121
More information about the jboss-dev-forums
mailing list