Bean Endpoint does not properly handle CGLIB enhanced beans (Crosscutting issue)
--------------------------------------------------------------------------------

                 Key: SMXCOMP-789
                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-789
             Project: ServiceMix Components
          Issue Type: Bug
          Components: servicemix-bean
    Affects Versions: servicemix-bean-2010.01, servicemix-bean-2009.02, 
servicemix-bean-2009.01, servicemix-bean-2008.01
            Reporter: Ioannis Canellos


If I pass to the bean endpoint a bean that is enhanced by cglib (e.g. a bean 
annotated with spring's @Transactional annotation), then the Delivery Channel 
is not properly injected to the bean.

After digging a lot I realized that the root of the problem is in the 
combination of CGLIB & Reflection, which can cause tons of issues and 
apparently that have not been taken into consideration on the bean endpoint. 

This issue probably affects other service mix components too (I've also 
encountered similar behavior in camel). I think that either a global solution 
needs to be applied or a section needs to be added in the documentation.

I am attaching a patch that contains a unit test that reproduces this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to