It seems to me as if the following short hand:
<context:mbean-export/>
coupled with the annotations as such:
Does not work properly on Weblogic 10.3. I have installed all the Spring Framework extensions and the MBeans show up, but when I fire up JConsole they do not appear.Code:@ManagedResource(objectName="caching:name=cacheManagerJMX", description="Cache Management Bean") public class CacheManagerMBeanImpl implements CacheManagerJMXIntf { @Resource CacheManagerMBeanIntf cacheManager; @PostConstruct public void init() { System.out.println("CacheManagerMBeanImpl fired up with cacheManager = " + cacheManager); } @Override @ManagedOperation(description="Flush all caches") public void flushAllCaches() { Collection<CacheMBeanIntf> caches = cacheManager.getAllCaches(); for (CacheMBeanIntf cache : caches) { cache.flush(); } } }
If I export my MBeans using the following:
It works just fine.Code:<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false"> <property name="beans"> <map> <entry key="caching:name=cacheManager" value-ref="cacheMBean" /> </map> </property> </bean>
Thoughts?


Reply With Quote
