Class ConnectionFactory
- java.lang.Object
-
- org.objectweb.joram.client.jms.admin.AdministeredObject
-
- org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
-
- org.objectweb.joram.client.jms.ConnectionFactory
-
- All Implemented Interfaces:
Serializable,ConnectionFactory,QueueConnectionFactory,TopicConnectionFactory,XAConnectionFactory,XAQueueConnectionFactory,XATopicConnectionFactory,Referenceable
- Direct Known Subclasses:
LocalConnectionFactory,TcpConnectionFactory
public abstract class ConnectionFactory extends AbstractConnectionFactory implements ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, XAConnectionFactory, XAQueueConnectionFactory, XATopicConnectionFactory
Implements all thejavax.jms.ConnectionFactoryinterfaces.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.
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDdefine serialVersionUID for interoperability-
Fields inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
identity, identityClassName, params, reliableClass
-
Fields inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
rand
-
-
Constructor Summary
Constructors Modifier Constructor Description ConnectionFactory()Constructs an emptyConnectionFactory.protectedConnectionFactory(String url)Constructs aConnectionFactorydedicated to a given server.protectedConnectionFactory(String host, int port)Constructs aConnectionFactorydedicated to a given server.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()Returns a string view of the connection factory.-
Methods inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
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
-
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
getReference
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.jms.ConnectionFactory
createConnection, createConnection, createContext, createContext, createContext, createContext
-
Methods inherited from interface javax.jms.QueueConnectionFactory
createQueueConnection, createQueueConnection
-
Methods inherited from interface javax.jms.TopicConnectionFactory
createTopicConnection, createTopicConnection
-
Methods inherited from interface javax.jms.XAConnectionFactory
createXAConnection, createXAConnection, createXAContext, createXAContext
-
Methods inherited from interface javax.jms.XAQueueConnectionFactory
createXAQueueConnection, createXAQueueConnection
-
Methods inherited from interface javax.jms.XATopicConnectionFactory
createXATopicConnection, createXATopicConnection
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConnectionFactory
public ConnectionFactory()
Constructs an emptyConnectionFactory. Needed by ObjectFactory, should only be used for internal purposes.
-
ConnectionFactory
protected ConnectionFactory(String host, int port)
Constructs aConnectionFactorydedicated to a given server.- Parameters:
host- Name or IP address of the server's host.port- Server's listening port.
-
ConnectionFactory
protected ConnectionFactory(String url)
Constructs aConnectionFactorydedicated to a given server.- Parameters:
url- joram url.
-
-