use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsInOutSynchronousTest 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 JmsAsyncStartStopListenerTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
// use a persistent queue as the consumer is started asynchronously
// so we need a persistent store in case no active consumers when we send the messages
ConnectionFactory connectionFactory = CamelJmsTestHelper.createPersistentConnectionFactory();
JmsComponent jms = jmsComponentAutoAcknowledge(connectionFactory);
jms.setAsyncStartListener(true);
jms.setAsyncStopListener(true);
camelContext.addComponent(componentName, jms);
return camelContext;
}
use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsBatchResequencerJMSPriorityTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
camelContext.addComponent("jms", jmsComponentAutoAcknowledge(connectionFactory));
return camelContext;
}
use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsClientAckTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
camelContext.addComponent(componentName, jmsComponentClientAcknowledge(connectionFactory));
return camelContext;
}
use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsInOutWithNoOutBodyTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
camelContext.addComponent("activemq", jmsComponentAutoAcknowledge(connectionFactory));
return camelContext;
}
Aggregations