use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsLoadBalanceFailoverTest 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 JmsComponentTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
JmsComponent comp = jmsComponentAutoAcknowledge(connectionFactory);
comp.setAcceptMessagesWhileStopping(true);
comp.setAllowReplyManagerQuickStop(true);
comp.setAlwaysCopyMessage(true);
comp.setAcknowledgementMode(1);
comp.setAutoStartup(true);
comp.setCacheLevel(1);
comp.setClientId("foo");
comp.setConcurrentConsumers(2);
comp.setDeliveryPersistent(true);
comp.setExplicitQosEnabled(true);
comp.setIdleTaskExecutionLimit(20);
comp.setIdleConsumerLimit(21);
comp.setMaxConcurrentConsumers(5);
comp.setMaxMessagesPerTask(90);
comp.setPriority(3);
comp.setReceiveTimeout(5000);
comp.setRecoveryInterval(9000);
comp.setTimeToLive(3000);
comp.setTransacted(true);
comp.setTransactionTimeout(15000);
camelContext.addComponent(componentName, comp);
endpoint = (JmsEndpoint) comp.createEndpoint("queue:hello");
return camelContext;
}
use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsConsumerRestartPickupConfigurationChangesTest 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 JmsDeadLetterChannelInOutTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
// must be persistent so the consumer can receive the message as we receive AFTER the message
// has been published
ConnectionFactory connectionFactory = CamelJmsTestHelper.createPersistentConnectionFactory();
camelContext.addComponent("activemq", jmsComponentAutoAcknowledge(connectionFactory));
return camelContext;
}
use of javax.jms.ConnectionFactory in project camel by apache.
the class JmsDeadLetterQueueTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
camelContext.addComponent("activemq", jmsComponentAutoAcknowledge(connectionFactory));
return camelContext;
}
Aggregations