public class ConnectionFactory extends BasicConnectionFactory implements javax.naming.Referenceable
ConnectionFactory is used to create Connections with the Sun MQ Java Message Service (JMS) provider.javax.jms.ConnectionFactory,
com.sun.messaging.ConnectionConfiguration,
Serialized FormAO_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, storedVersion, VERSION| Modifier | Constructor and Description |
|---|---|
|
ConnectionFactory()
Constructs a ConnectionFactory with the default configuration.
|
protected |
ConnectionFactory(java.lang.String defaultsBase)
Constructs a ConnectionFactory with the specified configuration.
|
| Modifier and Type | Method and Description |
|---|---|
javax.jms.QueueConnection |
createQueueConnection()
Creates a Queue Connection with the default user identity.
|
javax.jms.QueueConnection |
createQueueConnection(java.lang.String username,
java.lang.String password)
Creates a Queue Connection with a specified user identity.
|
javax.jms.TopicConnection |
createTopicConnection()
Creates a Topic Connection with the default user identity.
|
javax.jms.TopicConnection |
createTopicConnection(java.lang.String username,
java.lang.String password)
Creates a Topic Connection with a specified user identity.
|
javax.naming.Reference |
getReference()
Returns the reference to this object.
|
createConnection, createConnection, createContext, createContext, createContext, createContext, getConnectionType, getContainerType, setConnectionType, setDefaultConfiguration, toStringdump, enumeratePropertyNames, getConfiguration, getCurrentConfiguration, getLabelForGroup, getPropertiesForGroup, getProperty, getPropertyForListValue, getPropertyGroups, getPropertyLabel, getPropertyListOtherName, getPropertyListValues, getPropertyType, getPropertyValueForListValue, getStoredVersion, getVERSION, isPropertyDeprecated, isPropertyHidden, isReadOnly, isStoredVersionCompatible, setProperty, setReadOnlypublic ConnectionFactory()
protected ConnectionFactory(java.lang.String defaultsBase)
public javax.jms.QueueConnection createQueueConnection()
throws javax.jms.JMSException
ConnectionFactory properties imqDefaultUsername and
imqDefaultPasswordjavax.jms.JMSException - if a JMS error occurs.ConnectionConfiguration.imqDefaultUsername,
ConnectionConfiguration.imqDefaultPasswordpublic javax.jms.QueueConnection createQueueConnection(java.lang.String username,
java.lang.String password)
throws javax.jms.JMSException
username - the caller's user namepassword - the caller's passwordjavax.jms.JMSException - if a JMS error occurs.public javax.jms.TopicConnection createTopicConnection()
throws javax.jms.JMSException
ConnectionFactory properties imqDefaultUsername and
imqDefaultPasswordjavax.jms.JMSException - if a JMS error occurs.ConnectionConfiguration.imqDefaultUsername,
ConnectionConfiguration.imqDefaultPasswordpublic javax.jms.TopicConnection createTopicConnection(java.lang.String username,
java.lang.String password)
throws javax.jms.JMSException
username - the caller's user namepassword - the caller's passwordjavax.jms.JMSException - if a JMS error occurs.public javax.naming.Reference getReference()
getReference in interface javax.naming.ReferenceableCopyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved.