org.objectweb.joram.client.jms.tcp
Class TcpConnectionFactory
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.tcp.TcpConnectionFactory
- All Implemented Interfaces:
- fr.dyade.aaa.jndi2.soap.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 TcpConnectionFactory
- extends ConnectionFactory
A TcpConnectionFactory
instance is a factory of TCP connections.
- See Also:
- Serialized Form
Method Summary |
static ConnectionFactory |
create()
Admin method creating a javax.jms.ConnectionFactory
instance for creating TCP connections with the default server. |
static ConnectionFactory |
create(java.lang.String host,
int port)
Admin method creating a javax.jms.ConnectionFactory
instance for creating TCP connections with a given server. |
static ConnectionFactory |
create(java.lang.String host,
int port,
java.lang.String reliableClass)
Admin method creating a javax.jms.ConnectionFactory
instance for creating TCP connections with a given server. |
protected RequestChannel |
createRequestChannel(FactoryParameters params,
Identity identity,
java.lang.String reliableClass)
Creates the TcpRequestChannel object specific to the protocol used. |
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 |
TcpConnectionFactory
public TcpConnectionFactory()
- Constructs an empty
TcpConnectionFactory
instance.
Should only be used for internal purposes.
createRequestChannel
protected RequestChannel createRequestChannel(FactoryParameters params,
Identity identity,
java.lang.String reliableClass)
throws javax.jms.JMSException
- Creates the
TcpRequestChannel
object specific to the protocol used.
- 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()
throws java.net.ConnectException
- Admin method creating a
javax.jms.ConnectionFactory
instance for creating TCP connections with the default server.
- Throws:
ConnectException
- If the admin connection is closed or broken.- See Also:
AbstractConnectionFactory.getDefaultServerHost()
,
AbstractConnectionFactory.getDefaultServerPort()
create
public static ConnectionFactory create(java.lang.String host,
int port)
- Admin method creating a
javax.jms.ConnectionFactory
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 ConnectionFactory create(java.lang.String host,
int port,
java.lang.String reliableClass)
- Admin method creating a
javax.jms.ConnectionFactory
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.
Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved