org.jboss.messaging.ra
Class JBMConnectionFactoryImpl

java.lang.Object
  extended by org.jboss.messaging.ra.JBMConnectionFactoryImpl
All Implemented Interfaces:
java.io.Serializable, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory, javax.jms.XAConnectionFactory, javax.jms.XAQueueConnectionFactory, javax.jms.XATopicConnectionFactory, javax.naming.Referenceable, JBMConnectionFactory

public class JBMConnectionFactoryImpl
extends java.lang.Object
implements JBMConnectionFactory, javax.resource.Referenceable

The connection factory

Version:
$Revision: $
Author:
Adrian Brock, Jesper Pedersen
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jboss.messaging.ra.JBMConnectionFactory
CONNECTION, QUEUE_CONNECTION, TOPIC_CONNECTION, XA_CONNECTION, XA_QUEUE_CONNECTION, XA_TOPIC_CONNECTION
 
Constructor Summary
JBMConnectionFactoryImpl(JBMManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
          Constructor
 
Method Summary
 javax.jms.Connection createConnection()
          Create a connection
 javax.jms.Connection createConnection(java.lang.String userName, java.lang.String password)
          Create a connection
 javax.jms.QueueConnection createQueueConnection()
          Create a queue connection
 javax.jms.QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password)
          Create a queue connection
 javax.jms.TopicConnection createTopicConnection()
          Create a topic connection
 javax.jms.TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password)
          Create a topic connection
 javax.jms.XAConnection createXAConnection()
          Create a XA connection
 javax.jms.XAConnection createXAConnection(java.lang.String userName, java.lang.String password)
          Create a XA connection
 javax.jms.XAQueueConnection createXAQueueConnection()
          Create a XA queue connection
 javax.jms.XAQueueConnection createXAQueueConnection(java.lang.String userName, java.lang.String password)
          Create a XA queue connection
 javax.jms.XATopicConnection createXATopicConnection()
          Create a XA topic connection
 javax.jms.XATopicConnection createXATopicConnection(java.lang.String userName, java.lang.String password)
          Create a XA topic connection
 javax.naming.Reference getReference()
          Get the reference
 void setReference(javax.naming.Reference reference)
          Set the reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBMConnectionFactoryImpl

public JBMConnectionFactoryImpl(JBMManagedConnectionFactory mcf,
                                javax.resource.spi.ConnectionManager cm)
Constructor

Parameters:
mcf - The managed connection factory
cm - The connection manager
Method Detail

setReference

public void setReference(javax.naming.Reference reference)
Set the reference

Parameters:
reference - The reference

getReference

public javax.naming.Reference getReference()
Get the reference

Specified by:
getReference in interface javax.naming.Referenceable
Returns:
The reference

createQueueConnection

public javax.jms.QueueConnection createQueueConnection()
                                                throws javax.jms.JMSException
Create a queue connection

Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createQueueConnection

public javax.jms.QueueConnection createQueueConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Create a queue connection

Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Parameters:
userName - The user name
password - The password
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createTopicConnection

public javax.jms.TopicConnection createTopicConnection()
                                                throws javax.jms.JMSException
Create a topic connection

Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createTopicConnection

public javax.jms.TopicConnection createTopicConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Create a topic connection

Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Parameters:
userName - The user name
password - The password
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createConnection

public javax.jms.Connection createConnection()
                                      throws javax.jms.JMSException
Create a connection

Specified by:
createConnection in interface javax.jms.ConnectionFactory
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createConnection

public javax.jms.Connection createConnection(java.lang.String userName,
                                             java.lang.String password)
                                      throws javax.jms.JMSException
Create a connection

Specified by:
createConnection in interface javax.jms.ConnectionFactory
Parameters:
userName - The user name
password - The password
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createXAQueueConnection

public javax.jms.XAQueueConnection createXAQueueConnection()
                                                    throws javax.jms.JMSException
Create a XA queue connection

Specified by:
createXAQueueConnection in interface javax.jms.XAQueueConnectionFactory
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createXAQueueConnection

public javax.jms.XAQueueConnection createXAQueueConnection(java.lang.String userName,
                                                           java.lang.String password)
                                                    throws javax.jms.JMSException
Create a XA queue connection

Specified by:
createXAQueueConnection in interface javax.jms.XAQueueConnectionFactory
Parameters:
userName - The user name
password - The password
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createXATopicConnection

public javax.jms.XATopicConnection createXATopicConnection()
                                                    throws javax.jms.JMSException
Create a XA topic connection

Specified by:
createXATopicConnection in interface javax.jms.XATopicConnectionFactory
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createXATopicConnection

public javax.jms.XATopicConnection createXATopicConnection(java.lang.String userName,
                                                           java.lang.String password)
                                                    throws javax.jms.JMSException
Create a XA topic connection

Specified by:
createXATopicConnection in interface javax.jms.XATopicConnectionFactory
Parameters:
userName - The user name
password - The password
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createXAConnection

public javax.jms.XAConnection createXAConnection()
                                          throws javax.jms.JMSException
Create a XA connection

Specified by:
createXAConnection in interface javax.jms.XAConnectionFactory
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails

createXAConnection

public javax.jms.XAConnection createXAConnection(java.lang.String userName,
                                                 java.lang.String password)
                                          throws javax.jms.JMSException
Create a XA connection

Specified by:
createXAConnection in interface javax.jms.XAConnectionFactory
Parameters:
userName - The user name
password - The password
Returns:
The connection
Throws:
javax.jms.JMSException - Thrown if the operation fails


Copyright © 2006 JBoss Inc. All Rights Reserved.