use of javax.jms.ConnectionFactory in project camel by apache.
the class FileRouteToJmsTest 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 FileRouteToJmsToFileTest 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 JmsAddAndRemoveRouteManagementTest 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 JmsAllowNullBodyTest 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 JmsAsyncStartListenerTest 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);
camelContext.addComponent(componentName, jms);
return camelContext;
}
Aggregations