use of org.apache.activemq.jms.pool.JcaPooledConnectionFactory in project cxf by apache.
the class JMSTransactionTest method startBusAndJMS.
public static void startBusAndJMS(String brokerURI) {
try {
transactionManager = new GeronimoTransactionManager();
} catch (XAException e) {
throw new IllegalStateException(e.getMessage(), e);
}
bus = BusFactory.getDefaultBus();
registerTransactionManager();
ActiveMQXAConnectionFactory cf1 = new ActiveMQXAConnectionFactory(brokerURI);
cf1.setRedeliveryPolicy(redeliveryPolicy());
JcaPooledConnectionFactory pcf = new JcaPooledConnectionFactory();
pcf.setTransactionManager(transactionManager);
pcf.setConnectionFactory(cf1);
cf = pcf;
cff = new ConnectionFactoryFeature(pcf);
}
Aggregations