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://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On July 7, 2014 at 2:37:48 AM, sushil_vsk5 (sushil_v...@yahoo.co.in) wrote:
> 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 this custom bean
> initializes (assuming routes get initialized along with the Camel Context).
> In that case, I believe my original problem would still remain as I wont be
> able to guarantee that my custom bean initializes before the routes.
>  
> Comments?
>  
>  
> Regards,
> Sushil
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Spring-DSL-Type-Converters-tp5753300p5753427.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to