camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Spring DSL Type Converters
Date Fri, 04 Jul 2014 07:33:33 GMT
Hi

Not currently. I think there is a JIRA ticket, to allow ppl to define
<bean> 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 <sushil_vsk5@yahoo.co.in> wrote:
> Hello:
>
> I want to specify my type converters as Spring beans and refer to them
> inside the application context file, something similar to what we can do for
> Components rather than allowing Camel to auto-discover them. Is this
> possible?
>
> I need to do this as sometimes I am hitting a loading issue when running in
> a JBoss 7 container (it does parallel loading of components) where a route
> is loaded from Spring while the default type converters are still not
> discovered. This ends up in the route failing to start up (no type converter
> found from java.lang.String to java.lang.Integer, etc.)
>
> However, this is intermittent and most of the time all start up fine and the
> routes get initialized properly
>
> Regards,
> Sushil
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Spring-DSL-Type-Converters-tp5753300.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message