org.jboss.mq
Class SpyXAConnectionFactory

java.lang.Object
  extended byorg.jboss.mq.SpyConnectionFactory (src) 
      extended byorg.jboss.mq.SpyXAConnectionFactory
All Implemented Interfaces:
ConnectionFactory (src) , QueueConnectionFactory (src) , javax.naming.Referenceable, java.io.Serializable, TopicConnectionFactory (src) , XAConnectionFactory (src) , XAQueueConnectionFactory (src) , XATopicConnectionFactory (src)

public class SpyXAConnectionFactory
extends SpyConnectionFactory (src)
implements java.io.Serializable, XAConnectionFactory (src) , XAQueueConnectionFactory (src) , XATopicConnectionFactory (src)

This class implements javax.jms.XATopicConnectionFactory and javax.jms.XAQueueConnectionFactory.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.mq.SpyConnectionFactory (src)
factory
 
Constructor Summary
SpyXAConnectionFactory(GenericConnectionFactory (src)  factory)
          Create a new SpyXAConnectionFactory
SpyXAConnectionFactory(java.util.Properties config)
          Create a new SpyXAConnectionFactory
 
Method Summary
 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 org.jboss.mq.SpyConnectionFactory (src)
createConnection, createConnection, createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.QueueConnectionFactory (src)
createQueueConnection, createQueueConnection
 
Methods inherited from interface javax.jms.ConnectionFactory (src)
createConnection, createConnection
 
Methods inherited from interface javax.jms.TopicConnectionFactory (src)
createTopicConnection, createTopicConnection
 

Constructor Detail

SpyXAConnectionFactory

public SpyXAConnectionFactory(GenericConnectionFactory (src)  factory)
Create a new SpyXAConnectionFactory

Parameters:
factory - the generic connection factory

SpyXAConnectionFactory

public SpyXAConnectionFactory(java.util.Properties config)
Create a new SpyXAConnectionFactory

Parameters:
config - the configuration
Method Detail

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
Overrides:
getReference in class SpyConnectionFactory (src)
Throws:
javax.naming.NamingException