AbstractConnectionFactory.java :  » JMS » UberMQ » com » ubermq » jms » client » impl » Java Open Source

Java Open Source » JMS » UberMQ 
UberMQ » com » ubermq » jms » client » impl » AbstractConnectionFactory.java
package com.ubermq.jms.client.impl;

/**
 * A convenience implementation for a connection factory
 * that does not need to distinguish between topic and queue
 * connections, and does not use username and password information.
 * <P>
 *
 * All method calls are delegated to the <code>createConnection</code> method.<P>
 */
public abstract class AbstractConnectionFactory
    implements javax.jms.ConnectionFactory,
    javax.jms.TopicConnectionFactory,
    javax.jms.QueueConnectionFactory
{
    public javax.jms.TopicConnection createTopicConnection(String p0, String p1) throws javax.jms.JMSException
    {
        return (javax.jms.TopicConnection)createConnection();
    }

    public javax.jms.TopicConnection createTopicConnection() throws javax.jms.JMSException
    {
        return (javax.jms.TopicConnection)createConnection();
    }

    public javax.jms.QueueConnection createQueueConnection(String p0, String p1) throws javax.jms.JMSException
    {
        return (javax.jms.QueueConnection)createConnection();
    }

    public javax.jms.QueueConnection createQueueConnection() throws javax.jms.JMSException
    {
        return (javax.jms.QueueConnection)createConnection();
    }

    public javax.jms.Connection createConnection(String p0, String p1) throws javax.jms.JMSException
    {
        return createConnection();
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.