public class BasicConnectionFactory extends AdministeredObject implements javax.jms.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.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 |
---|---|
|
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 |
---|---|
javax.jms.Connection |
createConnection()
Creates a Connection with the default user identity.
|
javax.jms.Connection |
createConnection(java.lang.String username,
java.lang.String password)
Creates a Connection with a specified user identity.
|
javax.jms.JMSContext |
createContext() |
javax.jms.JMSContext |
createContext(int sessionMode) |
javax.jms.JMSContext |
createContext(java.lang.String userName,
java.lang.String password) |
javax.jms.JMSContext |
createContext(java.lang.String userName,
java.lang.String password,
int sessionMode) |
java.lang.String |
getConnectionType()
Returns the type of connections created by this
BasicConnectionFactory . |
protected static com.sun.messaging.jmq.jmsclient.ContainerType |
getContainerType() |
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 javax.jms.Connection createConnection() throws javax.jms.JMSException
ConnectionFactory
properties imqDefaultUsername
and
imqDefaultPassword
createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSException
- if a JMS error occurs.ConnectionConfiguration.imqDefaultUsername
,
ConnectionConfiguration.imqDefaultPassword
public javax.jms.Connection createConnection(java.lang.String username, java.lang.String password) throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
username
- the caller's user namepassword
- the caller's passwordjavax.jms.JMSException
- if a JMS error occurs.public javax.jms.JMSContext createContext()
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.JMSContext createContext(java.lang.String userName, java.lang.String password)
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.JMSContext createContext(java.lang.String userName, java.lang.String password, int sessionMode)
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.JMSContext createContext(int sessionMode)
createContext
in interface javax.jms.ConnectionFactory
protected static com.sun.messaging.jmq.jmsclient.ContainerType getContainerType()
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) 2010, 2017 Oracle and/or its affiliates. All rights reserved.