Search in sources :

Example 6 with JMSEndpoint

use of org.apache.cxf.transport.jms.uri.JMSEndpoint in project cxf by apache.

the class JMSConfigFactoryTest method testTransactionManagerFromJndi.

@Test
public void testTransactionManagerFromJndi() throws XAException, NamingException {
    JMSEndpoint endpoint = new JMSEndpoint("jms:queue:Foo.Bar?jndiTransactionManagerName=java:/comp/TransactionManager");
    Assert.assertEquals("java:/comp/TransactionManager", endpoint.getJndiTransactionManagerName());
// TODO Check JNDI lookup
}
Also used : JMSEndpoint(org.apache.cxf.transport.jms.uri.JMSEndpoint) Test(org.junit.Test)

Aggregations

JMSEndpoint (org.apache.cxf.transport.jms.uri.JMSEndpoint)6 TransactionManager (javax.transaction.TransactionManager)3 GeronimoTransactionManager (org.apache.geronimo.transaction.manager.GeronimoTransactionManager)2 Test (org.junit.Test)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 List (java.util.List)1 TreeMap (java.util.TreeMap)1 ConnectionFactory (javax.jms.ConnectionFactory)1 JMSException (javax.jms.JMSException)1 ConfiguredBeanLocator (org.apache.cxf.configuration.ConfiguredBeanLocator)1 JMSDestinationResolver (org.apache.cxf.transport.jms.util.JMSDestinationResolver)1 JndiHelper (org.apache.cxf.transport.jms.util.JndiHelper)1