Skip to content

@Transactional annotation hodes @ManagedResource [SPR-2281] #6970

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions