Package com.sun.messaging
Class ConnectionFactory
java.lang.Object
com.sun.messaging.AdministeredObject
com.sun.messaging.BasicConnectionFactory
com.sun.messaging.ConnectionFactory
- All Implemented Interfaces:
- jakarta.jms.ConnectionFactory,- Serializable,- Referenceable
- Direct Known Subclasses:
- QueueConnectionFactory,- TopicConnectionFactory,- XAConnectionFactory
A 
ConnectionFactory is used to create Connections with the OpenMQ Java Message Service (JMS) provider.- See Also:
- 
Field SummaryFields inherited from class com.sun.messaging.AdministeredObjectAO_PROPERTY_TYPE_BOOLEAN, AO_PROPERTY_TYPE_INTEGER, AO_PROPERTY_TYPE_LIST, AO_PROPERTY_TYPE_LONG, AO_PROPERTY_TYPE_PROPERTYOWNER, AO_PROPERTY_TYPE_STRING, cachedConfigurationMap, configuration, configurationLabels, configurationTypes, cr, VERSION
- 
Constructor SummaryConstructorsModifierConstructorDescriptionConstructs a ConnectionFactory with the default configuration.protectedConnectionFactory(String defaultsBase) Constructs a ConnectionFactory with the specified configuration.
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.jms.QueueConnectionCreates a Queue Connection with the default user identity.jakarta.jms.QueueConnectioncreateQueueConnection(String username, String password) Creates a Queue Connection with a specified user identity.jakarta.jms.TopicConnectionCreates a Topic Connection with the default user identity.jakarta.jms.TopicConnectioncreateTopicConnection(String username, String password) Creates a Topic Connection with a specified user identity.Returns the reference to this object.Methods inherited from class com.sun.messaging.BasicConnectionFactorycreateConnection, createConnection, createContext, createContext, createContext, createContext, getConnectionType, getContainerType, setConnectionType, setDefaultConfiguration, toStringMethods inherited from class com.sun.messaging.AdministeredObjectdump, enumeratePropertyNames, getConfiguration, getCurrentConfiguration, getLabelForGroup, getPropertiesForGroup, getProperty, getPropertyForListValue, getPropertyGroups, getPropertyLabel, getPropertyListOtherName, getPropertyListValues, getPropertyType, getPropertyValueForListValue, getStoredVersion, getVERSION, isPropertyDeprecated, isPropertyHidden, isReadOnly, isStoredVersionCompatible, setProperty, setReadOnly, setStoredVersion
- 
Constructor Details- 
ConnectionFactorypublic ConnectionFactory()Constructs a ConnectionFactory with the default configuration.
- 
ConnectionFactoryConstructs a ConnectionFactory with the specified configuration.
 
- 
- 
Method Details- 
createQueueConnectionpublic jakarta.jms.QueueConnection createQueueConnection() throws jakarta.jms.JMSExceptionCreates a Queue Connection with the default user identity. The default user identity is defined by theConnectionFactorypropertiesimqDefaultUsernameandimqDefaultPassword- Returns:
- a newly created Queue Connection.
- Throws:
- jakarta.jms.JMSException- if a JMS error occurs.
- See Also:
 
- 
createQueueConnectionpublic jakarta.jms.QueueConnection createQueueConnection(String username, String password) throws jakarta.jms.JMSException Creates a Queue Connection with a specified user identity.- Parameters:
- username- the caller's user name
- password- the caller's password
- Returns:
- a newly created queue connection.
- Throws:
- jakarta.jms.JMSException- if a JMS error occurs.
 
- 
createTopicConnectionpublic jakarta.jms.TopicConnection createTopicConnection() throws jakarta.jms.JMSExceptionCreates a Topic Connection with the default user identity. The default user identity is defined by theConnectionFactorypropertiesimqDefaultUsernameandimqDefaultPassword- Returns:
- a newly created Topic Connection.
- Throws:
- jakarta.jms.JMSException- if a JMS error occurs.
- See Also:
 
- 
createTopicConnectionpublic jakarta.jms.TopicConnection createTopicConnection(String username, String password) throws jakarta.jms.JMSException Creates a Topic Connection with a specified user identity.- Parameters:
- username- the caller's user name
- password- the caller's password
- Returns:
- a newly created topic connection.
- Throws:
- jakarta.jms.JMSException- if a JMS error occurs.
 
- 
getReferenceReturns the reference to this object.- Specified by:
- getReferencein interface- Referenceable
- Returns:
- The Reference Object that can be used to reconstruct this object
 
 
-