Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-11 Thread Norman Maurer
I'm using camel 2.2.0 and spring 3.0 without any problem here.. Not sure why you see this problem ? Could you double check that you don't have old versions of spring mixed with the new ones in your classpath ? Bye, Norman 2010/5/11 Willem Jiang : > Claus Ibsen wrote: >> >> Hi >> >> Yeah implemen

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-10 Thread Willem Jiang
Claus Ibsen wrote: Hi Yeah implementing CamelContextAware should cause the bean to be depends-on Camel automatically. So I think a test should be created which doesn't implement this interface. I can't reproduce the issue by removing the CamelContextAware interface :( Willem On Tue, May 1

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-10 Thread Claus Ibsen
Hi Yeah implementing CamelContextAware should cause the bean to be depends-on Camel automatically. So I think a test should be created which doesn't implement this interface. On Tue, May 11, 2010 at 3:49 AM, Willem Jiang wrote: > Hi Jonathan, > > I tried to reproduce the error that you meet, bu

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-10 Thread Willem Jiang
Hi Jonathan, I tried to reproduce the error that you meet, but no luck with with it. Can you past the stack trace and the code of your processor? Did you have any specify setting on your RouteBuilder ? They will help us to find the cause of issue. Willem jonathanq wrote: Hello, I grabbed th

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-10 Thread jonathanq
Hello, I grabbed the 2.3-SNAPSHOT jars and confirmed that my original issue is still present in 2.3 As with 2.2.0 - it can only be solved by specifying: depends-on="camel" on the route builder bean. I tried pulling the 2.3-SNAPSHOT code to run your test locally and determine what the difference

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-09 Thread Willem Jiang
Hi Jonathan, I just added a unit test[1] which is based on your test case, it looks like current camel 2.3 don't have the issue that you met. Can you have a look at my test and verify your case against the latest Camel 2.3-SNAPSHOT ? [1] http://svn.apache.org/viewvc?rev=942665&view=rev Wil

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-03 Thread jonathanq
Claus, That worked! I changed my spring configuration to to the one below and everything worked as expected. Thanks for the help! Jonathan Claus Ibsen-2 wrote: > > Hi > > Can you try with a depends-on="camel" attribute on the for the > RouteBuilder to see if

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-01 Thread Claus Ibsen
Hi Can you try with a depends-on="camel" attribute on the for the RouteBuilder to see if that helps. On Fri, Apr 30, 2010 at 8:36 PM, jonathanq wrote: > > I am having serious issues with Camel 2.2.0 and Spring 3.0.2.RELEASE. > > I am creating my route in spring as a bean and then injecting i