Currently I specify MBeanExporter like this:
This works fine, but I want to achieve the same thing using Spring JMX annotations, but I couldn't find a way to specify 'namingStragey' reference in the Annotations (@ManagedResource or on <context:managed /> tag). Any help is appreciated.Code:<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false"> <property name="beans"> <map> <entry key="RouterCache" value-ref="routerCache" /> </map> </property> <property name="namingStrategy" ref="websphereNamingStrategy" /> </bean> <bean id="websphereNamingStrategy" class="com.xxx.WebSphereNamingStrategy"> <constructor-arg ref="WASAdminService" /> </bean>
Thanks, Kiran


Reply With Quote
