Maybe I'm doing something wrong but, I can't find a way to get the annotations to be read by Spring for my managed Beans.
(There is an 'at' sign on the MangedResource but, the forum code was blocking it as a url?)Code:ManagedResource(description = "Configurable Data Service Factory allows REST client swapping") public class DataServiceFactory implements IDataServiceFactory, DataServiceFactoryMBean {
When I pull up jconsole, the bean does show up under the name "BeerCode" but, the description is the default instead of what is defined in the annotation. Setting objectName also gets ignored.Code:<context:mbean-export default-domain="BeerCode" /> <bean id="dataClientFactory" class="com.willcode4beer.rest.client.DataServiceFactory"> <description>Configurable Data Client Factory</description> <property name="httpClient"> <bean class="com.willcode4beer.rest.client.HttpDataClient" /> </property> <property name="mockClient" ref="mockDataClient" /> </bean>
Am I missing something?


Reply With Quote