com.caucho.jms.connection
Class XAConnectionFactoryImpl

java.lang.Object
  extended by com.caucho.jms.connection.ConnectionFactoryImpl
      extended by com.caucho.jms.connection.XAConnectionFactoryImpl
All Implemented Interfaces:
HandleAware, java.io.Serializable, ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, XAConnectionFactory, XAQueueConnectionFactory, XATopicConnectionFactory

public class XAConnectionFactoryImpl
extends ConnectionFactoryImpl

A sample connection factory.

See Also:
Serialized Form

Constructor Summary
XAConnectionFactoryImpl()
           
 
Method Summary
 Connection createConnection()
          Creates a new queue connection
 Connection createConnection(java.lang.String username, java.lang.String password)
          Creates a new connection
 Queue createQueue(java.lang.String name)
          Creates queue.
 QueueConnection createQueueConnection()
          Creates a new queue connection
 QueueConnection createQueueConnection(java.lang.String username, java.lang.String password)
          Creates a new queue connection
 Topic createTopic(java.lang.String name)
          Creates topics.
 TopicConnection createTopicConnection()
          Creates a new queue connection
 TopicConnection createTopicConnection(java.lang.String username, java.lang.String password)
          Creates a new queue connection
 
Methods inherited from class com.caucho.jms.connection.ConnectionFactoryImpl
addConnection, authenticate, createXAConnection, createXAConnection, createXAQueueConnection, createXAQueueConnection, createXATopicConnection, createXATopicConnection, findByClientID, getName, init, removeConnection, setClientID, setDataSource, setName, setPassword, setSerializationHandle, setUser, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAConnectionFactoryImpl

public XAConnectionFactoryImpl()
Method Detail

createConnection

public Connection createConnection()
                            throws JMSException
Creates a new queue connection

Specified by:
createConnection in interface ConnectionFactory
Overrides:
createConnection in class ConnectionFactoryImpl
Throws:
JMSException

createConnection

public Connection createConnection(java.lang.String username,
                                   java.lang.String password)
                            throws JMSException
Creates a new connection

Specified by:
createConnection in interface ConnectionFactory
Overrides:
createConnection in class ConnectionFactoryImpl
Parameters:
username - the username to authenticate with the server.
password - the password to authenticate with the server.
Returns:
the created connection
Throws:
JMSException

createQueue

public Queue createQueue(java.lang.String name)
                  throws JMSException
Creates queue.

Overrides:
createQueue in class ConnectionFactoryImpl
Throws:
JMSException

createTopic

public Topic createTopic(java.lang.String name)
                  throws JMSException
Creates topics.

Overrides:
createTopic in class ConnectionFactoryImpl
Throws:
JMSException

createQueueConnection

public QueueConnection createQueueConnection()
                                      throws JMSException
Creates a new queue connection

Specified by:
createQueueConnection in interface QueueConnectionFactory
Overrides:
createQueueConnection in class ConnectionFactoryImpl
Throws:
JMSException

createQueueConnection

public QueueConnection createQueueConnection(java.lang.String username,
                                             java.lang.String password)
                                      throws JMSException
Creates a new queue connection

Specified by:
createQueueConnection in interface QueueConnectionFactory
Overrides:
createQueueConnection in class ConnectionFactoryImpl
Parameters:
username - the username to authenticate with the server.
password - the password to authenticate with the server.
Returns:
the created connection
Throws:
JMSException

createTopicConnection

public TopicConnection createTopicConnection()
                                      throws JMSException
Creates a new queue connection

Specified by:
createTopicConnection in interface TopicConnectionFactory
Overrides:
createTopicConnection in class ConnectionFactoryImpl
Throws:
JMSException

createTopicConnection

public TopicConnection createTopicConnection(java.lang.String username,
                                             java.lang.String password)
                                      throws JMSException
Creates a new queue connection

Specified by:
createTopicConnection in interface TopicConnectionFactory
Overrides:
createTopicConnection in class ConnectionFactoryImpl
Parameters:
username - the username to authenticate with the server.
password - the password to authenticate with the server.
Returns:
the created connection
Throws:
JMSException