Examples of QpidRAManagedConnectionFactory


Examples of org.apache.qpid.ra.QpidRAManagedConnectionFactory

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

        XAConnectionFactory factory = getConnectionFactory(FACTORY_NAME);
        XAConnection connection = factory.createXAConnection("guest", "guest");
        XASession s2 = connection.createXASession();
View Full Code Here

Examples of org.apache.qpid.ra.QpidRAManagedConnectionFactory

    private static final String URL = "amqp://guest:guest@client/test?brokerlist='tcp://localhost:" + BROKER_PORT + "?sasl_mechs='PLAIN''";

    public void testSessionCommitOnClosedConnectionThrowsException() throws Exception
    {
        QpidResourceAdapter ra = new QpidResourceAdapter();
        QpidRAManagedConnectionFactory mcf = new QpidRAManagedConnectionFactory();
        mcf.setConnectionURL(URL);
        mcf.setResourceAdapter(ra);
        ConnectionFactory cf = new QpidRAConnectionFactoryImpl(mcf, null);
        Connection c = cf.createConnection();
        Session s = c.createSession(true, Session.SESSION_TRANSACTED);
        c.close();
View Full Code Here

Examples of org.apache.qpid.ra.QpidRAManagedConnectionFactory

    }

    public void testMessageAck() throws Exception
    {
        QpidResourceAdapter ra = new QpidResourceAdapter();
        QpidRAManagedConnectionFactory mcf = new QpidRAManagedConnectionFactory();
        mcf.setConnectionURL(URL);
        mcf.setResourceAdapter(ra);
        ConnectionFactory cf = new QpidRAConnectionFactoryImpl(mcf, null);
        Connection c = cf.createConnection();
        Session s = c.createSession(false, Session.AUTO_ACKNOWLEDGE);
        Message m = s.createTextMessage();
View Full Code Here

Examples of org.apache.qpid.ra.QpidRAManagedConnectionFactory

    private static final String URL = "amqp://guest:guest@client/test?brokerlist='tcp://localhost:" + BROKER_PORT + "?sasl_mechs='PLAIN''";

    public void testSessionCommitOnClosedConnectionThrowsException() throws Exception
    {
        QpidResourceAdapter ra = new QpidResourceAdapter();
        QpidRAManagedConnectionFactory mcf = new QpidRAManagedConnectionFactory();
        mcf.setConnectionURL(URL);
        mcf.setResourceAdapter(ra);
        ConnectionFactory cf = new QpidRAConnectionFactoryImpl(mcf, null);
        Connection c = cf.createConnection();
        Session s = c.createSession(true, Session.SESSION_TRANSACTED);
        c.close();
View Full Code Here

Examples of org.apache.qpid.ra.QpidRAManagedConnectionFactory

    }

    public void testMessageAck() throws Exception
    {
        QpidResourceAdapter ra = new QpidResourceAdapter();
        QpidRAManagedConnectionFactory mcf = new QpidRAManagedConnectionFactory();
        mcf.setConnectionURL(URL);
        mcf.setResourceAdapter(ra);
        ConnectionFactory cf = new QpidRAConnectionFactoryImpl(mcf, null);
        Connection c = cf.createConnection();
        Session s = c.createSession(false, Session.AUTO_ACKNOWLEDGE);
        Message m = s.createTextMessage();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.