On Tue, Feb 12, 2013 at 5:49 PM, sekaijin <jean-yves.terr...@sap.aphp.fr> wrote: > Hi, > Yes he can retrieve the datasource in my java code via lookup > but how to inject it in my routeBuilder? > > > how to write this last ".to(...)" to use the object ds? >
The camel jdbc will lookup the data source like you can do with the lookup from the RouteBuilder. So have you tried from X to("jdbc:jdbc:osgi:service/javax.sql.DataSource/(name=nomDatasource)"); > thank > A+JYT > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/jdbc-osgi-services-javax-sql-DataSource-name-nomDatasource-tp5727351p5727440.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen