org.objectweb.joram.client.jms.ha.tcp
Class HATcpConnectionFactory
java.lang.Object
org.objectweb.joram.client.jms.admin.AdministeredObject
org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
org.objectweb.joram.client.jms.ConnectionFactory
org.objectweb.joram.client.jms.ha.tcp.HATcpConnectionFactory
- All Implemented Interfaces:
- SoapObjectItf, java.io.Serializable, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory, javax.jms.XAConnectionFactory, javax.jms.XAQueueConnectionFactory, javax.jms.XATopicConnectionFactory, 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 |
private static long |
serialVersionUID
define serialVersionUID for interoperability |
Method Summary |
static 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 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. |
protected RequestChannel |
createRequestChannel(FactoryParameters params,
Identity identity,
java.lang.String reliableClass)
Creates the HATcpRequestChannel object needed to connect to the
remote HA server. |
Methods inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory |
code, code, createConnection, createConnection, createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, createXAConnection, createXAConnection, createXAQueueConnection, createXAQueueConnection, createXATopicConnection, createXATopicConnection, decode, decode, fromReference, fromReference, getDefaultLogin, getDefaultPassword, getDefaultRootLogin, getDefaultRootPassword, getDefaultServerHost, getDefaultServerPort, getParameters, initIdentity, setIdentityClassName, setReliableClass, toReference, toReference |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.XAQueueConnectionFactory |
createXAQueueConnection, createXAQueueConnection |
Methods inherited from interface javax.jms.QueueConnectionFactory |
createQueueConnection, createQueueConnection |
Methods inherited from interface javax.jms.XATopicConnectionFactory |
createXATopicConnection, createXATopicConnection |
Methods inherited from interface javax.jms.XAConnectionFactory |
createXAConnection, createXAConnection |
Methods inherited from interface javax.jms.TopicConnectionFactory |
createTopicConnection, createTopicConnection |
Methods inherited from interface javax.jms.ConnectionFactory |
createConnection, createConnection |
serialVersionUID
private static final long serialVersionUID
- define serialVersionUID for interoperability
- See Also:
- Constant Field Values
HATcpConnectionFactory
public HATcpConnectionFactory()
- Constructs an empty
HATcpConnectionFactory
.
Needed by ObjectFactory, should only be used for internal purposes.
HATcpConnectionFactory
private HATcpConnectionFactory(java.lang.String url)
- Constructs an
HATcpConnectionFactory
instance.
- Parameters:
url
- The Joram HA URL.
createRequestChannel
protected RequestChannel createRequestChannel(FactoryParameters params,
Identity identity,
java.lang.String reliableClass)
throws javax.jms.JMSException
- Creates the
HATcpRequestChannel
object needed to connect to the
remote HA server.
- Specified by:
createRequestChannel
in class AbstractConnectionFactory
- Parameters:
params
- Connection configuration parameters.identity
- Client's identity.reliableClass
- The protocol specific class.
- Returns:
- The
RequestChannel
object specific to the protocol used.
- Throws:
javax.jms.JMSException
- A problem occurs during the connection.- See Also:
AbstractConnectionFactory.createRequestChannel(FactoryParameters, Identity, String)
create
public static 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 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 serverreliableClass
- Reliable class name.
Copyright © 2010 ScalAgent D.T.. All Rights Reserved.