public abstract class ConnectionFactory extends AbstractConnectionFactory implements jakarta.jms.ConnectionFactory, jakarta.jms.QueueConnectionFactory, jakarta.jms.TopicConnectionFactory, jakarta.jms.XAConnectionFactory, jakarta.jms.XAQueueConnectionFactory, jakarta.jms.XATopicConnectionFactory
jakarta.jms.ConnectionFactory interfaces.
A ConnectionFactory object encapsulates a set of configuration parameters defined by an administrator. A client needs to use it to create a connection with a Joram server.
A ConnectionFactory object encapsulates a set of configuration parameters defined by an administrator. A client needs to use it to create a connection with a Joram server.
A ConnectionFactory object is a JMS administered object containing configuration information, it is created by an administrator and later used by JMS clients. Normally the JMS clients find administered objects by looking them up in a JNDI namespace.
ConnectionFactory objects can be programmatically created using the LocalConnectionFactory.create or TcpConnectionFactory.create methods. Created objects can be then configured using FactoryParameters object.
ConnectionFactory,
QueueConnectionFactory,
TopicConnectionFactory,
XAConnectionFactory,
XAQueueConnectionFactory,
XATopicConnectionFactory,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
define serialVersionUID for interoperability
|
identity, identityClassName, params, reliableClassrand| Modifier | Constructor and Description |
|---|---|
|
ConnectionFactory()
Constructs an empty
ConnectionFactory. |
protected |
ConnectionFactory(String url)
Constructs a
ConnectionFactory dedicated to a given server. |
protected |
ConnectionFactory(String host,
int port)
Constructs a
ConnectionFactory dedicated to a given server. |
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns a string view of the connection factory.
|
createConnection, createConnection, createContext, createContext, createContext, createContext, createQueueConnection, createQueueConnection, createRequestChannel, 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
public ConnectionFactory()
ConnectionFactory.
Needed by ObjectFactory, should only be used for internal purposes.protected ConnectionFactory(String host, int port)
ConnectionFactory dedicated to a given server.host - Name or IP address of the server's host.port - Server's listening port.protected ConnectionFactory(String url)
ConnectionFactory dedicated to a given server.url - joram url.Copyright © 2023 ScalAgent D.T.. All rights reserved.