org.objectweb.joram.client.jms.tcp
Class XAQueueTcpConnectionFactory

java.lang.Object
  extended byorg.objectweb.joram.client.jms.admin.AdministeredObject
      extended byorg.objectweb.joram.client.jms.XAConnectionFactory
          extended byorg.objectweb.joram.client.jms.XAQueueConnectionFactory
              extended byorg.objectweb.joram.client.jms.tcp.XAQueueTcpConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.naming.Referenceable, java.io.Serializable, SoapObjectItf, javax.jms.XAConnectionFactory, javax.jms.XAQueueConnectionFactory

public class XAQueueTcpConnectionFactory
extends XAQueueConnectionFactory

An XAQueueTcpConnectionFactory instance is a factory of TCP connections for XA PTP communication.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.XAConnectionFactory
params
 
Fields inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
id, instancesTable
 
Constructor Summary
XAQueueTcpConnectionFactory(java.lang.String host, int port)
          Constructs an XAQueueTcpConnectionFactory instance.
 
Method Summary
static javax.jms.XAQueueConnectionFactory create()
          Admin method creating a javax.jms.XAQueueConnectionFactory instance for creating TCP connections with the local server.
static javax.jms.XAQueueConnectionFactory create(java.lang.String host, int port)
          Admin method creating a javax.jms.XAQueueConnectionFactory instance for creating TCP connections with a given server.
 javax.jms.Connection createConnection(java.lang.String name, java.lang.String password)
          Method inherited from the ConnectionFactory class.
 javax.jms.QueueConnection createQueueConnection(java.lang.String name, java.lang.String password)
          Method inherited from the QueueConnectionFactory class.
 javax.jms.XAConnection createXAConnection(java.lang.String name, java.lang.String password)
          Method inherited from the XAConnectionFactory class.
 javax.jms.XAQueueConnection createXAQueueConnection(java.lang.String name, java.lang.String password)
          Method inherited from the XAQueueConnectionFactory class.
 
Methods inherited from class org.objectweb.joram.client.jms.XAQueueConnectionFactory
createConnection, createQueueConnection, createXAQueueConnection, toString
 
Methods inherited from class org.objectweb.joram.client.jms.XAConnectionFactory
code, createXAConnection, decode, getParameters, getReference
 
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.XAConnectionFactory
createXAConnection
 

Constructor Detail

XAQueueTcpConnectionFactory

public XAQueueTcpConnectionFactory(java.lang.String host,
                                   int port)
Constructs an XAQueueTcpConnectionFactory instance.

Parameters:
host - Name or IP address of the server's host.
port - Server's listening port.
Method Detail

createXAQueueConnection

public javax.jms.XAQueueConnection createXAQueueConnection(java.lang.String name,
                                                           java.lang.String password)
                                                    throws javax.jms.JMSException
Method inherited from the XAQueueConnectionFactory class.

Specified by:
createXAQueueConnection in interface javax.jms.XAQueueConnectionFactory
Specified by:
createXAQueueConnection in class XAQueueConnectionFactory
Throws:
JMSSecurityException - If the user identification is incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSException

createXAConnection

public javax.jms.XAConnection createXAConnection(java.lang.String name,
                                                 java.lang.String password)
                                          throws javax.jms.JMSException
Method inherited from the XAConnectionFactory class.

Specified by:
createXAConnection in interface javax.jms.XAConnectionFactory
Specified by:
createXAConnection in class XAConnectionFactory
Throws:
JMSSecurityException - If the user identification is incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSException

createQueueConnection

public javax.jms.QueueConnection createQueueConnection(java.lang.String name,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Method inherited from the QueueConnectionFactory class.

Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Specified by:
createQueueConnection in class XAQueueConnectionFactory
Throws:
JMSSecurityException - If the user identification is incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSException

createConnection

public javax.jms.Connection createConnection(java.lang.String name,
                                             java.lang.String password)
                                      throws javax.jms.JMSException
Method inherited from the ConnectionFactory class.

Specified by:
createConnection in interface javax.jms.ConnectionFactory
Specified by:
createConnection in class XAQueueConnectionFactory
Throws:
JMSSecurityException - If the user identification is incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSException

create

public static javax.jms.XAQueueConnectionFactory create(java.lang.String host,
                                                        int port)
Admin method creating a javax.jms.XAQueueConnectionFactory instance for creating TCP connections with a given server.

Parameters:
host - Name or IP address of the server's host.
port - Server's listening port.

create

public static javax.jms.XAQueueConnectionFactory create()
                                                 throws java.net.ConnectException
Admin method creating a javax.jms.XAQueueConnectionFactory instance for creating TCP connections with the local server.

Throws:
ConnectException - If the admin connection is closed or broken.


Copyright ? 2004 Scalagent - All rights reserved