camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel-Spring and Bean post processors
Date Sun, 31 May 2009 07:40:13 GMT

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 <> 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:

View raw message