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");