use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsSimpleRequestReply2Test method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
camelContext.addComponent(componentName, jmsComponentAutoAcknowledge(connectionFactory));
return camelContext;
}
use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsSplitterParallelTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
camelContext.addComponent("activemq", jmsComponentAutoAcknowledge(connectionFactory));
return camelContext;
}
use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsSuspendResumeTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
// must use persistent so the message is not lost
ConnectionFactory connectionFactory = CamelJmsTestHelper.createPersistentConnectionFactory();
camelContext.addComponent("activemq", jmsComponentAutoAcknowledge(connectionFactory));
return camelContext;
}
use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsRequestReplyExclusiveReplyToComponentTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
// mark the reply to type as exclusive on the component
JmsComponent jms = jmsComponentAutoAcknowledge(connectionFactory);
jms.setReplyToType(ReplyToType.Exclusive);
camelContext.addComponent("activemq", jms);
return camelContext;
}
use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsRouteUsingJMSXGroupTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
camelContext.addComponent("jms", jmsComponentAutoAcknowledge(connectionFactory));
return camelContext;
}
Aggregations