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
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
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
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
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
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