private static final String BROKER_PORT = "15672";
private static final String URL = "amqp://guest:guest@client/test?brokerlist='tcp://localhost:" + BROKER_PORT + "?sasl_mechs='PLAIN''";
public void testXAResourceIsSameRM() throws Exception
{
QpidResourceAdapter ra = new QpidResourceAdapter();
QpidRAManagedConnectionFactory mcf = new QpidRAManagedConnectionFactory();
mcf.setConnectionURL(URL);
mcf.setResourceAdapter(ra);
QpidRAManagedConnection mc = (QpidRAManagedConnection)mcf.createManagedConnection(null, null);
AMQXAResource xa1 = (AMQXAResource)mc.getXAResource();