use of org.apache.camel.component.jms.JmsComponent in project ddf by codice.
the class AmqpProducerConsumerExample method createCamelContext.
private void createCamelContext() throws Exception {
CamelContext camelContext = getContext();
JmsConnectionFactory connectionFactory = new JmsConnectionFactory("admin", "admin", "amqps://localhost:5671");
JmsComponent jms = JmsComponent.jmsComponent(connectionFactory);
AMQPComponent amqp = new AMQPComponent(connectionFactory);
camelContext.addComponent("jms", jms);
camelContext.addComponent("amqp", amqp);
}
use of org.apache.camel.component.jms.JmsComponent 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.component.jms.JmsComponent 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.component.jms.JmsComponent 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;
}
use of org.apache.camel.component.jms.JmsComponent in project camel by apache.
the class JmsHttpJmsTest 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;
}
Aggregations