Announcement Announcement Module
Collapse
No announcement yet.
Proxy Aspects and @ManagedResource do not work together Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Proxy Aspects and @ManagedResource do not work together

    Hi
    When my singleton has aspects applied to it, it is not visible to the MBeanExporter.
    The singleton is marked up the usual way:
    Code:
    @ManagedResource(objectName = "Foo:name=Bar")
    public class Bar ...
    As soon as I remove the aspects , the exporter is able to find the annotations:
    Code:
    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
            <property name="autodetect" value="true"/>
            <property name="assembler" ref="assembler"/>
    		<property name="namingStrategy" ref="namingStrategy"/>
    	</bean>
    1. How do I expose beans that have aspects?
    2. A possibly related question is how do I find a singleton with aspects, using Groovy or Beanshell if I start out with the bean factory:
    Code:
    bean = beans.getBean('myService')
    Thanks!
Working...
X