public abstract class ConnectionFactory extends AbstractConnectionFactory implements ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, XAConnectionFactory, XAQueueConnectionFactory, XATopicConnectionFactory
javax.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.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
define serialVersionUID for interoperability
|
identity, identityClassName, params, reliableClass
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, toReference
getReference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createXAQueueConnection, createXAQueueConnection
createQueueConnection, createQueueConnection
createXATopicConnection, createXATopicConnection
createXAConnection, createXAConnection
createTopicConnection, createTopicConnection
createConnection, createConnection
private 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.