use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class MinaFiltersTest method createJndiContext.
@Override
protected Context createJndiContext() throws Exception {
JndiContext answer = new JndiContext();
IoFilter myFilter = new TestFilter();
List<IoFilter> myFilters = new ArrayList<IoFilter>();
myFilters.add(myFilter);
answer.bind("myFilters", myFilters);
answer.bind("myFilter", myFilter);
return answer;
}
use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class Mina2FiltersTest method createJndiContext.
@Override
protected Context createJndiContext() throws Exception {
JndiContext answer = new JndiContext();
IoFilter myFilter = new TestFilter();
List<IoFilter> myFilters = new ArrayList<IoFilter>();
myFilters.add(myFilter);
answer.bind("myFilters", myFilters);
answer.bind("myFilter", myFilter);
return answer;
}
use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class HttpAsyncDslTest method createJndiContext.
@Override
protected Context createJndiContext() throws Exception {
JndiContext answer = new JndiContext();
// add ActiveMQ with embedded broker
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
JmsComponent amq = jmsComponentAutoAcknowledge(connectionFactory);
amq.setCamelContext(context);
answer.bind("jms", amq);
return answer;
}
use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class RemoveEndpointsTest method createJndiContext.
@Override
protected Context createJndiContext() throws Exception {
JndiContext answer = new JndiContext();
// add ActiveMQ with embedded broker
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
JmsComponent amq = jmsComponentAutoAcknowledge(connectionFactory);
amq.setCamelContext(context);
answer.bind("jms", amq);
return answer;
}
use of org.apache.camel.util.jndi.JndiContext in project camel by apache.
the class DynamicRouteTest method createJndiContext.
@Override
protected Context createJndiContext() throws Exception {
JndiContext answer = new JndiContext();
// add ActiveMQ with embedded broker
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
JmsComponent amq = jmsComponentAutoAcknowledge(connectionFactory);
amq.setCamelContext(context);
answer.bind("jms", amq);
answer.bind("myBean", new MyBean());
return answer;
}
Aggregations