public class BasicConnectionFactory extends AdministeredObject implements ConnectionFactory
BasicConnectionFactory
encapsulates Sun MQ specific configuration information
for Sun MQ ConnectionFactory
objects and is used to create Connections with
a 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 |
---|---|
|
BasicConnectionFactory()
Constructs a BasicConnectionFactory with the default configuration.
|
protected |
BasicConnectionFactory(java.lang.String defaultsBase)
Constructs a BasicConnectionFactory with the specified configuration.
|
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection()
Creates a Connection with the default user identity.
|
Connection |
createConnection(java.lang.String username,
java.lang.String password)
Creates a Connection with a specified user identity.
|
java.lang.String |
getConnectionType()
Returns the type of connections created by this
BasicConnectionFactory . |
void |
setConnectionType(java.lang.String type)
Sets the type of connections created by this
BasicConnectionFactory . |
void |
setDefaultConfiguration()
Sets the minimum
BasicConnectionFactory configuration defaults
required to connect to the Sun MQ Message Service. |
java.lang.String |
toString()
Returns a pretty printed version of the provider specific
information for this ConnectionFactory object.
|
dump, enumeratePropertyNames, getConfiguration, getCurrentConfiguration, getLabelForGroup, getPropertiesForGroup, getProperty, getPropertyForListValue, getPropertyGroups, getPropertyLabel, getPropertyListOtherName, getPropertyListValues, getPropertyType, getPropertyValueForListValue, getStoredVersion, getVERSION, isPropertyDeprecated, isPropertyHidden, isReadOnly, isStoredVersionCompatible, setProperty, setReadOnly
public BasicConnectionFactory()
protected BasicConnectionFactory(java.lang.String defaultsBase)
public Connection createConnection() throws JMSException
ConnectionFactory
properties
imqDefaultUsername
and imqDefaultPassword
createConnection
in interface ConnectionFactory
JMSException
- if a JMS error occurs.ConnectionConfiguration.imqDefaultUsername
,
ConnectionConfiguration.imqDefaultPassword
public Connection createConnection(java.lang.String username, java.lang.String password) throws JMSException
createConnection
in interface ConnectionFactory
username
- the caller's user namepassword
- the caller's passwordJMSException
- if a JMS error occurs.public final void setConnectionType(java.lang.String type)
BasicConnectionFactory
.type
- The type of connections created by this
BasicConnectionFactory
.public final java.lang.String getConnectionType()
BasicConnectionFactory
.BasicConnectionFactory
.public java.lang.String toString()
toString
in class AdministeredObject
public void setDefaultConfiguration()
BasicConnectionFactory
configuration defaults
required to connect to the Sun MQ Message Service.setDefaultConfiguration
in class AdministeredObject
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.