public class ConnectionFactory extends BasicConnectionFactory implements Referenceable
ConnectionFactory
is used to create Connections with
the Sun MQ Java Message Service (JMS) provider.AO_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(String defaultsBase)
Constructs a ConnectionFactory with the specified configuration.
|
Modifier and Type | Method and Description |
---|---|
QueueConnection |
createQueueConnection()
Creates a Queue Connection with the default user identity.
|
QueueConnection |
createQueueConnection(String username,
String password)
Creates a Queue Connection with a specified user identity.
|
TopicConnection |
createTopicConnection()
Creates a Topic Connection with the default user identity.
|
TopicConnection |
createTopicConnection(String username,
String password)
Creates a Topic Connection with a specified user identity.
|
Reference |
getReference()
Returns the reference to this object.
|
createConnection, createConnection, createContext, createContext, createContext, createContext, getConnectionType, getContainerType, setConnectionType, setDefaultConfiguration, toString
dump, enumeratePropertyNames, getConfiguration, getCurrentConfiguration, getLabelForGroup, getPropertiesForGroup, getProperty, getPropertyForListValue, getPropertyGroups, getPropertyLabel, getPropertyListOtherName, getPropertyListValues, getPropertyType, getPropertyValueForListValue, getStoredVersion, getVERSION, isPropertyDeprecated, isPropertyHidden, isReadOnly, isStoredVersionCompatible, setProperty, setReadOnly
public ConnectionFactory()
protected ConnectionFactory(String defaultsBase)
public QueueConnection createQueueConnection() throws JMSException
ConnectionFactory
properties
imqDefaultUsername
and imqDefaultPassword
JMSException
- if a JMS error occurs.ConnectionConfiguration.imqDefaultUsername
,
ConnectionConfiguration.imqDefaultPassword
public QueueConnection createQueueConnection(String username, String password) throws JMSException
username
- the caller's user namepassword
- the caller's passwordJMSException
- if a JMS error occurs.public TopicConnection createTopicConnection() throws JMSException
ConnectionFactory
properties
imqDefaultUsername
and imqDefaultPassword
JMSException
- if a JMS error occurs.ConnectionConfiguration.imqDefaultUsername
,
ConnectionConfiguration.imqDefaultPassword
public TopicConnection createTopicConnection(String username, String password) throws JMSException
username
- the caller's user namepassword
- the caller's passwordJMSException
- if a JMS error occurs.public Reference getReference()
getReference
in interface Referenceable
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.