org.jboss.jms.client
Class JBossConnectionFactory

java.lang.Object
  extended byorg.jboss.jms.client.JBossConnectionFactory
All Implemented Interfaces:
ConnectionFactory (src) , QueueConnectionFactory (src) , javax.naming.Referenceable, TopicConnectionFactory (src) , XAConnectionFactory (src) , XAQueueConnectionFactory (src) , XATopicConnectionFactory (src)

public class JBossConnectionFactory
extends java.lang.Object
implements ConnectionFactory (src) , QueueConnectionFactory (src) , TopicConnectionFactory (src) , XAConnectionFactory (src) , XAQueueConnectionFactory (src) , XATopicConnectionFactory (src) , javax.naming.Referenceable

A connection factory


Constructor Summary
JBossConnectionFactory(ImplementationDelegate (src)  delegate)
          Construct a new Connection factory
 
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.
 XAConnection (src) createXAConnection()
          Creates an XAConnection with the default user identity.
 XAConnection (src) createXAConnection(java.lang.String userName, java.lang.String password)
          Creates an XA connection with the specified user identity.
 XAQueueConnection (src) createXAQueueConnection()
          Creates an XA queue connection with the default user identity.
 XAQueueConnection (src) createXAQueueConnection(java.lang.String userName, java.lang.String password)
          Creates an XA queue connection with the specified user identity.
 XATopicConnection (src) createXATopicConnection()
          Creates an XA topic connection with the default user identity.
 XATopicConnection (src) createXATopicConnection(java.lang.String userName, java.lang.String password)
          Creates an XA topic connection with the specified user identity.
 javax.naming.Reference getReference()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossConnectionFactory

public JBossConnectionFactory(ImplementationDelegate (src)  delegate)
                       throws JMSException (src) 
Construct a new Connection factory

Parameters:
delegate - the implementation
Method Detail

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.

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.

createXAConnection

public XAConnection (src)  createXAConnection()
                                throws JMSException (src) 
Description copied from interface: XAConnectionFactory (src)
Creates an XAConnection 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:
createXAConnection in interface XAConnectionFactory (src)
Returns:
a newly created XAConnection
Throws:
JMSException (src) - if the JMS provider fails to create an XA connection due to some internal error.

createXAConnection

public XAConnection (src)  createXAConnection(java.lang.String userName,
                                       java.lang.String password)
                                throws JMSException (src) 
Description copied from interface: XAConnectionFactory (src)
Creates an XA 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:
createXAConnection in interface XAConnectionFactory (src)
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created XA connection
Throws:
JMSException (src) - if the JMS provider fails to create an XA connection due to some internal error.

createXAQueueConnection

public XAQueueConnection (src)  createXAQueueConnection()
                                          throws JMSException (src) 
Description copied from interface: XAQueueConnectionFactory (src)
Creates an XA 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:
createXAQueueConnection in interface XAQueueConnectionFactory (src)
Returns:
a newly created XA queue connection
Throws:
JMSException (src) - if the JMS provider fails to create an XA queue connection due to some internal error.

createXAQueueConnection

public XAQueueConnection (src)  createXAQueueConnection(java.lang.String userName,
                                                 java.lang.String password)
                                          throws JMSException (src) 
Description copied from interface: XAQueueConnectionFactory (src)
Creates an XA 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:
createXAQueueConnection in interface XAQueueConnectionFactory (src)
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created XA queue connection
Throws:
JMSException (src) - if the JMS provider fails to create an XA queue connection due to some internal error.

createXATopicConnection

public XATopicConnection (src)  createXATopicConnection()
                                          throws JMSException (src) 
Description copied from interface: XATopicConnectionFactory (src)
Creates an XA 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:
createXATopicConnection in interface XATopicConnectionFactory (src)
Returns:
a newly created XA topic connection
Throws:
JMSException (src) - if the JMS provider fails to create an XA topic connection due to some internal error.

createXATopicConnection

public XATopicConnection (src)  createXATopicConnection(java.lang.String userName,
                                                 java.lang.String password)
                                          throws JMSException (src) 
Description copied from interface: XATopicConnectionFactory (src)
Creates an XA 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:
createXATopicConnection in interface XATopicConnectionFactory (src)
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created XA topic connection
Throws:
JMSException (src) - if the JMS provider fails to create an XA topic connection due to some internal error.

getReference

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