use of org.apache.camel.component.jms.PassThroughJmsKeyFormatStrategy in project camel by apache.
the class JmsPassThroughtJmsKeyFormatStrategyUsingJmsConfigurationTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ConnectionFactory connectionFactory = CamelJmsTestHelper.createConnectionFactory();
camelContext.addComponent("activemq", jmsComponentAutoAcknowledge(connectionFactory));
JmsComponent jms = camelContext.getComponent("activemq", JmsComponent.class);
jms.getConfiguration().setJmsKeyFormatStrategy(new PassThroughJmsKeyFormatStrategy());
return camelContext;
}
Aggregations