use of org.apache.cxf.transport.jms.uri.MyBeanLocator in project cxf by apache.
the class JMSConfigFactoryTest method testTransactionManagerFromBus.
@Test
public void testTransactionManagerFromBus() throws XAException, NamingException {
Bus bus = BusFactory.newInstance().createBus();
ConfiguredBeanLocator cbl = bus.getExtension(ConfiguredBeanLocator.class);
MyBeanLocator mybl = new MyBeanLocator(cbl);
bus.setExtension(mybl, ConfiguredBeanLocator.class);
TransactionManager tmExpected = new GeronimoTransactionManager();
mybl.register("tm", tmExpected);
tmByName(bus, tmExpected);
tmByClass(bus, tmExpected);
}
Aggregations