Re: how to do a registry of type: javax.sql.DataSource

2013-04-03 Thread Claus Ibsen
Yes you can use the bind method on the Main class to bind a bean to the registry. On Sun, Mar 24, 2013 at 10:09 AM, pitabwire wrote: > Hi Mr claus you could just bind the datasource to the default camel runner if > you are not using any containers to run your route as shown below. > > > > packa

Re: how to do a registry of type: javax.sql.DataSource

2013-03-24 Thread pitabwire
Hi Mr claus you could just bind the datasource to the default camel runner if you are not using any containers to run your route as shown below. package com.notifications; import org.apache.camel.main.Main; /** * A drops notifications . */ public class StartupManager { /** * A main

Re: how to do a registry of type: javax.sql.DataSource

2013-03-23 Thread takidean
Hi Mr claus is still get this message im so pressed i have to do it for my project of end of year public static void main(String[] args) throws Exception { // TODO Auto-generated method stub //DataSource dd; DriverManagerDataSource ds = new DriverManagerDa

Re: how to do a registry of type: javax.sql.DataSource

2013-03-23 Thread takidean
Hi Mr claus is still get this message im so pressed i have to do it for my project of end of year /**main**/ public static void main(String[] args) throws Exception { // TODO Auto-generated method stub //DataSource dd; Dri

Re: how to do a registry of type: javax.sql.DataSource

2013-03-21 Thread Claus Ibsen
Hi You can use the simple registry http://camel.apache.org/registry.html And put the sql data source on the registry with a given name. Its just a Map And then pass that registry in the DefaultCamelContext constructor. On Fri, Mar 22, 2013 at 12:31 AM, takidean wrote: > hi everybody this is

how to do a registry of type: javax.sql.DataSource

2013-03-21 Thread takidean
hi everybody this is my apache camel code: public class Cntx { /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { // TODO Auto-generated method stub CamelContext context = n