Package org.codehaus.xfire.transport.jms

Source Code of org.codehaus.xfire.transport.jms.AbstractXFireJMSTest

package org.codehaus.xfire.transport.jms;

import javax.jms.QueueConnectionFactory;

import org.apache.activemq.ActiveMQConnectionFactory;
import org.codehaus.xfire.aegis.AbstractXFireAegisTest;

public class AbstractXFireJMSTest
    extends AbstractXFireAegisTest
{
    private QueueConnectionFactory factory;

    private JMSTransport transport;

    protected void setUp()
        throws Exception
    {
        super.setUp();

        factory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");

        transport = (JMSTransport) new JMSTransport(getXFire(), getConnectionFactory());
       
        getXFire().getTransportManager().register(transport);
    }

    public JMSTransport getTransport()
    {
        return transport;
    }

    public QueueConnectionFactory getConnectionFactory()
    {
        return factory;
    }

    protected void tearDown()
        throws Exception
    {
        super.tearDown();
    }
}
TOP

Related Classes of org.codehaus.xfire.transport.jms.AbstractXFireJMSTest

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.