Re: Spring DSL Type Converters

2014-07-07 Thread sushil_vsk5
Hi: Thanks for that. Not sure if that would solve my specific problem though. If I have a route with URI "jms://testQ?concurrentConsumers=3", then during initialization of the route itself, type conversion kicks in to convert 3 from String to Integer and fails if the default type converters are n

Re: Spring DSL Type Converters

2014-07-06 Thread Willem Jiang
In most case we just grab the type converter from the camel context otherwise we need to know the converter class name. For you case if you register to converter to camel context even after the routes are initialised, the converter can still work. -- Willem Jiang Red Hat, Inc. Web: http://ww

Re: Spring DSL Type Converters

2014-07-06 Thread sushil_vsk5
Hi: Thanks a lot for that. I was just wondering whether this solution would work in a fool-proof manner, concern being, I understand that the Camel Context cab be injected into a custom bean and then the type converters can be registered but wouldn't the routes still be initialized even before t

Re: Spring DSL Type Converters

2014-07-04 Thread Claus Ibsen
Hi Not currently. I think there is a JIRA ticket, to allow ppl to define for type converters. You can write a java bean that gets CamelContext injected, and then you can use that to add the type converters manually. On Thu, Jul 3, 2014 at 7:58 PM, sushil_vsk5 wrote: > Hello: > > I want to sp