return new JmsTransactionRequestReplyRouteBuilder();
}
@Override
protected CamelContext createCamelContext() throws Exception {
SimpleRegistry registry = new SimpleRegistry();
ActiveMQConnectionFactory connectionFactory =
new ActiveMQConnectionFactory("vm://embedded?broker.persistent=false");
registry.put("connectionFactory", connectionFactory);
JmsTransactionManager jmsTransactionManager = new JmsTransactionManager();
jmsTransactionManager.setConnectionFactory(connectionFactory);
registry.put("jmsTransactionManager", jmsTransactionManager);
SpringTransactionPolicy propagationRequired = new SpringTransactionPolicy();
propagationRequired.setTransactionManager(jmsTransactionManager);
propagationRequired.setPropagationBehaviorName("PROPAGATION_REQUIRED");
registry.put("PROPAGATION_REQUIRED", propagationRequired);
SpringTransactionPolicy propagationNotSupported = new SpringTransactionPolicy();
propagationNotSupported.setTransactionManager(jmsTransactionManager);
propagationNotSupported.setPropagationBehaviorName("PROPAGATION_NOT_SUPPORTED");
registry.put("PROPAGATION_NOT_SUPPORTED", propagationNotSupported);
CamelContext camelContext = new DefaultCamelContext(registry);
ActiveMQComponent activeMQComponent = new ActiveMQComponent();
activeMQComponent.setConnectionFactory(connectionFactory);