Joram 4.3.34

org.objectweb.joram.client.jms.ha.tcp
Class HATcpConnectionFactory

java.lang.Object
  extended by org.objectweb.joram.client.jms.admin.AdministeredObject
      extended by org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
          extended by org.objectweb.joram.client.jms.ConnectionFactory
              extended by org.objectweb.joram.client.jms.ha.tcp.HATcpConnectionFactory
All Implemented Interfaces:
fr.dyade.aaa.jndi2.soap.SoapObjectItf, java.io.Serializable, javax.jms.ConnectionFactory, javax.naming.Referenceable

public class HATcpConnectionFactory
extends ConnectionFactory

An XATcpConnectionFactory instance is a factory of tcp connections dedicated to HA communication.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
params, reliableClass
 
Constructor Summary
HATcpConnectionFactory()
           
HATcpConnectionFactory(java.lang.String url)
          Constructs an HATcpConnectionFactory instance.
 
Method Summary
static javax.jms.ConnectionFactory create(java.lang.String url)
          Admin method creating a javax.jms.ConnectionFactory instance for creating HA TCP connections with a given list of servers.
static javax.jms.ConnectionFactory create(java.lang.String url, java.lang.String reliableClass)
          Admin method creating a javax.jms.ConnectionFactory instance for creating HA TCP connections with a given list of servers.
 javax.jms.Connection createConnection(java.lang.String name, java.lang.String password)
          Method inherited from the ConnectionFactory class.
 
Methods inherited from class org.objectweb.joram.client.jms.ConnectionFactory
createConnection, toString
 
Methods inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
code, code, decode, decode, fromReference, fromReference, getDefaultLogin, getDefaultPassword, getDefaultRootLogin, getDefaultRootPassword, getParameters, setReliableClass, toReference, toReference
 
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
getReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HATcpConnectionFactory

public HATcpConnectionFactory(java.lang.String url)
Constructs an HATcpConnectionFactory instance.


HATcpConnectionFactory

public HATcpConnectionFactory()
Method Detail

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 ConnectionFactory
Throws:
javax.jms.JMSSecurityException - If the user identification is incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSException

create

public static javax.jms.ConnectionFactory create(java.lang.String url)
Admin method creating a javax.jms.ConnectionFactory instance for creating HA TCP connections with a given list of servers.

Parameters:
url - URL of the HA Joram server

create

public static javax.jms.ConnectionFactory create(java.lang.String url,
                                                 java.lang.String reliableClass)
Admin method creating a javax.jms.ConnectionFactory instance for creating HA TCP connections with a given list of servers.

Parameters:
url - URL of the HA Joram server
reliableClass - Reliable class name.

Joram 4.3.34

Copyright © 2005 Scalagent - All rights reserved