Closed
Description
Larry Singer opened SPR-2281 and commented
I have a class that has both the annotations @Transactional
and @ManagedResource
. The resource is not being registered to JMX. If I comment out the @Transactional
annotations then the class is registered to JMX.
My guess is that the class is wrapped by the transactional aspects, and then that wrapped class is passed to the MBeanExporter. The MBeanExporter can no longer see the @ManagedResource
annotations.
This is easy to work around, but I have no idea where to start looking for a fix for it. It may require support from CGLib to propogate the annotations from the underlying class to the wrapped class.
Affects: 1.2.6
Issue Links:
- @ManagedResource not discovered if at least one method is @Transactional, and no exception thrown [SPR-14189] #18760
@ManagedResource
not discovered if at least one method is@Transactional
, and no exception thrown - Doc/warning: JMX autodetection ignoring JDK-proxied @Transactional beans [SPR-5057] #9732 Doc/warning: JMX autodetection ignoring JDK-proxied
@Transactional
beans