org.jboss.resource.adapter.jms
Class JmsConnectionFactoryImpl

java.lang.Object
  extended byorg.jboss.resource.adapter.jms.JmsConnectionFactoryImpl
All Implemented Interfaces:
ConnectionFactory (src) , JmsConnectionFactory (src) , QueueConnectionFactory (src) , javax.naming.Referenceable, Referenceable (src) , java.io.Serializable, TopicConnectionFactory (src)

public class JmsConnectionFactoryImpl
extends java.lang.Object
implements JmsConnectionFactory (src) , Referenceable (src)

The the connection factory implementation for the JMS RA.

This object will be the QueueConnectionFactory or TopicConnectionFactory which clients will use to create connections. Created: Thu Apr 26 17:02:50 2001

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jboss.resource.adapter.jms.JmsConnectionFactory (src)
BOTH, QUEUE, TOPIC
 
Constructor Summary
JmsConnectionFactoryImpl(ManagedConnectionFactory (src)  mcf, ConnectionManager (src)  cm)
           
 
Method Summary
 Connection (src) createConnection()
          Creates a connection with the default user identity.
 Connection (src) createConnection(java.lang.String userName, java.lang.String password)
          Creates a connection with the specified user identity.
 QueueConnection (src) createQueueConnection()
          Creates a queue connection with the default user identity.
 QueueConnection (src) createQueueConnection(java.lang.String userName, java.lang.String password)
          Creates a queue connection with the specified user identity.
 TopicConnection (src) createTopicConnection()
          Creates a topic connection with the default user identity.
 TopicConnection (src) createTopicConnection(java.lang.String userName, java.lang.String password)
          Creates a topic connection with the specified user identity.
 javax.naming.Reference getReference()
           
 void setReference(javax.naming.Reference reference)
          Sets the reference instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsConnectionFactoryImpl

public JmsConnectionFactoryImpl(ManagedConnectionFactory (src)  mcf,
                                ConnectionManager (src)  cm)
Method Detail

setReference

public void setReference(javax.naming.Reference reference)
Description copied from interface: Referenceable (src)
Sets the reference instance

Specified by:
setReference in interface Referenceable (src)
Parameters:
reference - the reference

getReference

public javax.naming.Reference getReference()
Specified by:
getReference in interface javax.naming.Referenceable

createQueueConnection

public QueueConnection (src)  createQueueConnection()
                                      throws JMSException (src) 
Description copied from interface: QueueConnectionFactory (src)
Creates a queue connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. .

Specified by:
createQueueConnection in interface QueueConnectionFactory (src)
Returns:
a newly created queue connection
Throws:
JMSException (src) - if the JMS provider fails to create the queue connection due to some internal error.

createQueueConnection

public QueueConnection (src)  createQueueConnection(java.lang.String userName,
                                             java.lang.String password)
                                      throws JMSException (src) 
Description copied from interface: QueueConnectionFactory (src)
Creates a queue connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Specified by:
createQueueConnection in interface QueueConnectionFactory (src)
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created queue connection
Throws:
JMSException (src) - if the JMS provider fails to create the queue connection due to some internal error.

createTopicConnection

public TopicConnection (src)  createTopicConnection()
                                      throws JMSException (src) 
Description copied from interface: TopicConnectionFactory (src)
Creates a topic connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Specified by:
createTopicConnection in interface TopicConnectionFactory (src)
Returns:
a newly created topic connection
Throws:
JMSException (src) - if the JMS provider fails to create a topic connection due to some internal error.

createTopicConnection

public TopicConnection (src)  createTopicConnection(java.lang.String userName,
                                             java.lang.String password)
                                      throws JMSException (src) 
Description copied from interface: TopicConnectionFactory (src)
Creates a topic connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Specified by:
createTopicConnection in interface TopicConnectionFactory (src)
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created topic connection
Throws:
JMSException (src) - if the JMS provider fails to create a topic connection due to some internal error.

createConnection

public Connection (src)  createConnection()
                            throws JMSException (src) 
Description copied from interface: ConnectionFactory (src)
Creates a connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Specified by:
createConnection in interface ConnectionFactory (src)
Returns:
a newly created connection
Throws:
JMSException (src) - if the JMS provider fails to create the connection due to some internal error.

createConnection

public Connection (src)  createConnection(java.lang.String userName,
                                   java.lang.String password)
                            throws JMSException (src) 
Description copied from interface: ConnectionFactory (src)
Creates a connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Specified by:
createConnection in interface ConnectionFactory (src)
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created connection
Throws:
JMSException (src) - if the JMS provider fails to create the connection due to some internal error.