Created CAMEL-1663.  I've written it for 1.6.0 which is where I found
this problem, but put the 2.0 code in there as well commented out.

https://issues.apache.org/activemq/browse/CAMEL-1663


----- Original message -----
From: "Martin Gilday" <martin.li...@imap.cc>
To: users@camel.apache.org
Date: Sun, 31 May 2009 09:42:48 +0100
Subject: Re: Camel-Spring and Bean post processors

Hi Claus,
I will have to create a new processor for the test due to my error being
in commercial code.  It shouldn't take too long, and I will just make it
use Spring and Camel.  I will create a new JIRA when I have the test.

Martin.


----- Original message -----
From: "Claus Ibsen" <claus.ib...@gmail.com>
To: users@camel.apache.org
Date: Sun, 31 May 2009 09:40:13 +0200
Subject: Re: Camel-Spring and Bean post processors

Hi

If possible to create a small unit test / sample app that demos the
problem.
It should not depend on 3rd party .jars we cannot use at Apache such
as Hibernate due non Apache friendly license.
Then we can take a stab at it and if/when fixed we have an unit test
for it also.

But I need help from you / camel community to create the initial
sample / unit test.



On Fri, May 29, 2009 at 1:20 PM, Martin Gilday <martin.li...@imap.cc>
wrote:
> Hi,
>
> I am having trouble with camel-spring (1.6.0) and a
> InstantiationAwareBeanPostProcessorAdapter I have written.  It processes
> a custom annotation to set fields on Spring beans directly from
> .properties files.  The processor works correctly until I try to
> @Autowired into a Java Camel RouteBuilder.  The processor is not invoked
> at all for any bean that the route builder uses.  This is also true for
> any bean that is injected into a bean that the route builder uses. From
> my logging in my processor I can see that it is not invoked at all for
> these beans.  Has anyone any idea why this ay be?  Does Camel do any
> magic with beans it finds referenced by a route builder, such as moving
> them into another context that won't be covered by my processor?
>
> Also this page [1] refers to <routeBuilder ref="myBuilder" />  which I
> think should be <routeBuilderRef ref="myBuilder" />, but it is in a
> source file that the wiki includes so I can't correct it.
>
> Thanks,
> Martin.
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to