use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class AtomEntryPollingConsumerTest method createJndiContext.
@Override
protected Context createJndiContext() throws Exception {
JndiContext jndi = new JndiContext();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
jndi.bind("myDate", df.parse("2007-11-13 14:35:00 +0100"));
return jndi;
}
use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class AtomEntrySortTest method createJndiContext.
@Override
protected Context createJndiContext() throws Exception {
JndiContext jndi = new JndiContext();
jndi.bind("myBean", new MyBean());
return jndi;
}
use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class PredicateAsBeanTest method createJndiContext.
@Override
protected Context createJndiContext() throws Exception {
JndiContext answer = new JndiContext();
answer.bind("myPredicate", myPredicate);
return answer;
}
use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class BeanToFileTest method createJndiContext.
protected Context createJndiContext() throws Exception {
JndiContext answer = new JndiContext();
answer.bind("myBean", new MyBean());
return answer;
}
use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class XsltReferenceParameterTest method setUp.
public void setUp() throws Exception {
JndiRegistry registry = new JndiRegistry(new JndiContext());
RouteBuilder builder = createRouteBuilder();
CamelContext context = new DefaultCamelContext(registry);
testConverter = new TestConverter();
testTransformerFactory = TransformerFactory.newInstance();
registry.bind("testConverter", testConverter);
registry.bind("testTransformerFactory", testTransformerFactory);
ProcessorEndpoint pep1 = context.getEndpoint(TEST_URI_1, ProcessorEndpoint.class);
context.addRoutes(builder);
context.start();
builder1 = (XsltBuilder) pep1.getProcessor();
}
Aggregations