public class TcpConnectionFactory extends ConnectionFactory
TcpConnectionFactory instance is a factory of TCP connections.
The created ConnectionFactory can be configured using theFactoryParameters.| Modifier and Type | Field and Description |
|---|---|
private static org.objectweb.util.monolog.api.Logger |
logger |
private static long |
serialVersionUID
define serialVersionUID for interoperability
|
identity, identityClassName, params, reliableClassrand| Modifier | Constructor and Description |
|---|---|
|
TcpConnectionFactory()
Constructs an empty
TcpConnectionFactory instance. |
private |
TcpConnectionFactory(String host,
int port)
Constructs a
TcpConnectionFactory instance. |
| Modifier and Type | Method and Description |
|---|---|
static TcpConnectionFactory |
create()
Administration method creating a
ConnectionFactory
instance for creating TCP connections with the default server. |
static TcpConnectionFactory |
create(String host,
int port)
Administration method creating a
ConnectionFactory
instance for creating TCP connections with a given server. |
static TcpConnectionFactory |
create(String host,
int port,
String reliableClass)
Administration method creating a
ConnectionFactory
instance for creating TCP connections with a given server. |
protected RequestChannel |
createRequestChannel(FactoryParameters params,
org.objectweb.joram.shared.security.Identity identity,
String reliableClass)
Creates the
TcpRequestChannel object specific to the protocol used. |
toStringcreateConnection, createConnection, createContext, createContext, createContext, createContext, createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, createXAConnection, createXAConnection, createXAContext, createXAContext, createXAQueueConnection, createXAQueueConnection, createXATopicConnection, createXATopicConnection, fromReference, fromReference, getDefaultLogin, getDefaultPassword, getDefaultRootLogin, getDefaultRootPassword, getDefaultServerHost, getDefaultServerPort, getParameters, initIdentity, setCnxJMXBeanBaseName, setIdentityClassName, setReliableClass, toReference, toReferencegetReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateXAQueueConnection, createXAQueueConnectioncreateQueueConnection, createQueueConnectioncreateXATopicConnection, createXATopicConnectioncreateXAConnection, createXAConnection, createXAContext, createXAContextprivate static final long serialVersionUID
private static org.objectweb.util.monolog.api.Logger logger
public TcpConnectionFactory()
TcpConnectionFactory instance.
Should only be used for internal purposes.private TcpConnectionFactory(String host, int port)
TcpConnectionFactory instance.
By default the connectingTimer property is set to 60 seconds.host - Name or IP address of the server's host.port - Server's listening port.protected RequestChannel createRequestChannel(FactoryParameters params, org.objectweb.joram.shared.security.Identity identity, String reliableClass) throws jakarta.jms.JMSException
TcpRequestChannel object specific to the protocol used.createRequestChannel in class AbstractConnectionFactoryparams - Connection configuration parameters.identity - Client's identity.reliableClass - The protocol specific class.RequestChannel object specific to the protocol used.jakarta.jms.JMSException - A problem occurs during the connection.AbstractConnectionFactory.createRequestChannel(FactoryParameters, Identity, String)public static TcpConnectionFactory create()
ConnectionFactory
instance for creating TCP connections with the default server.public static TcpConnectionFactory create(String host, int port)
ConnectionFactory
instance for creating TCP connections with a given server.host - Name or IP address of the server's host.port - Server's listening port.public static TcpConnectionFactory create(String host, int port, String reliableClass)
ConnectionFactory
instance for creating TCP connections with a given server.host - Name or IP address of the server's host.port - Server's listening port.reliableClass - Reliable class name.Copyright © 2023 ScalAgent D.T.. All rights reserved.