use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class SqlDataSourceRefTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// START SNIPPET: e2
// this is the database we create with some initial data for our unit test
db = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.DERBY).addScript("sql/createAndPopulateDatabase.sql").build();
// END SNIPPET: e2
jndi.bind("jdbc/myDataSource", db);
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class SqlEndpointLikeTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// this is the database we create with some initial data for our unit test
db = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.DERBY).addScript("sql/createAndPopulateDatabase.sql").build();
jndi.bind("jdbc/myDataSource", db);
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class ZipkinSpanCollectorInRegistryTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
registry.bind("span", new ZipkinLoggingSpanCollector());
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class Mina2VMCustomCodecTest method createRegistry.
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("myCodec", new MyCodec());
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class RestNettyHttpGetTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("mybinding", new RestNettyHttpBinding());
return jndi;
}
Aggregations