org.jboss.mq
Class SpyConnectionFactory

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

public class SpyConnectionFactory
extends java.lang.Object
implements java.io.Serializable, ConnectionFactory (src) , QueueConnectionFactory (src) , TopicConnectionFactory (src) , javax.naming.Referenceable

This class implements javax.jms.TopicConnectionFactory and javax.jms.QueueConnectionFactory.

See Also:
Serialized Form

Field Summary
protected  GenericConnectionFactory (src) factory
          The delegate factory
 
Constructor Summary
SpyConnectionFactory(GenericConnectionFactory (src)  factory)
          Create a new SpyConnectionFactory
SpyConnectionFactory(java.util.Properties config)
          Create a new SpyConnectionFactory
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected GenericConnectionFactory (src)  factory
The delegate factory

Constructor Detail

SpyConnectionFactory

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

Parameters:
factory - the delegate factory

SpyConnectionFactory

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

Parameters:
config - the configuration
Method Detail

getReference

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

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.