Joram ${version}

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

java.lang.Object
  extended byorg.objectweb.joram.client.jms.admin.AdministeredObject
      extended byorg.objectweb.joram.client.jms.XAConnectionFactory
          extended byorg.objectweb.joram.client.jms.tcp.XATcpConnectionFactory
All Implemented Interfaces:
javax.naming.Referenceable, java.io.Serializable, fr.dyade.aaa.jndi2.soap.SoapObjectItf, javax.jms.XAConnectionFactory

public class XATcpConnectionFactory
extends XAConnectionFactory

An XATcpConnectionFactory instance is a factory of TCP connections dedicated to XA communication.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.XAConnectionFactory
params, reliableClass
 
Constructor Summary
XATcpConnectionFactory(java.lang.String host, int port)
          Constructs an iXATcpConnectionFactory instance.
 
Method Summary
static javax.jms.XAConnectionFactory create()
          Admin method creating a javax.jms.XAConnectionFactory instance for creating TCP connections with the local server.
static javax.jms.XAConnectionFactory create(java.lang.String host, int port)
          Admin method creating a javax.jms.XAConnectionFactory instance for creating TCP connections with a given server.
static javax.jms.XAConnectionFactory create(java.lang.String host, int port, java.lang.String reliableClass)
          Admin method creating a javax.jms.XAConnectionFactory instance for creating TCP connections with a given server.
 javax.jms.XAConnection createXAConnection(java.lang.String name, java.lang.String password)
          Method inherited from the XAConnectionFactory class.
 
Methods inherited from class org.objectweb.joram.client.jms.XAConnectionFactory
code, createXAConnection, decode, getParameters, getReference, setReliableClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XATcpConnectionFactory

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

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

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

create

public static javax.jms.XAConnectionFactory create(java.lang.String host,
                                                   int port)
Admin method creating a javax.jms.XAConnectionFactory 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.XAConnectionFactory create(java.lang.String host,
                                                   int port,
                                                   java.lang.String reliableClass)
Admin method creating a javax.jms.XAConnectionFactory 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.
reliableClass - Reliable class name.

create

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

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

Joram ${version}

Copyright ? 2005 Scalagent - All rights reserved