Package com.sun.messaging
Class BasicConnectionFactory
java.lang.Object
com.sun.messaging.AdministeredObject
com.sun.messaging.BasicConnectionFactory
- All Implemented Interfaces:
- jakarta.jms.ConnectionFactory,- Serializable
- Direct Known Subclasses:
- ConnectionFactory
public class BasicConnectionFactory
extends AdministeredObject
implements jakarta.jms.ConnectionFactory
A 
BasicConnectionFactory encapsulates OpenMQ specific configuration information for OpenMQ
 ConnectionFactory objects and is used to create Connections with a OpenMQ Jakarta Messaging
 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 BasicConnectionFactory with the default configuration.protectedBasicConnectionFactory(String defaultsBase) Constructs a BasicConnectionFactory with the specified configuration.
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.jms.ConnectionCreates a Connection with the default user identity.jakarta.jms.ConnectioncreateConnection(String username, String password) Creates a Connection with a specified user identity.jakarta.jms.JMSContextjakarta.jms.JMSContextcreateContext(int sessionMode) jakarta.jms.JMSContextcreateContext(String userName, String password) jakarta.jms.JMSContextcreateContext(String userName, String password, int sessionMode) final StringReturns the type of connections created by thisBasicConnectionFactory.protected static com.sun.messaging.jmq.jmsclient.ContainerTypefinal voidsetConnectionType(String type) Sets the type of connections created by thisBasicConnectionFactory.voidSets the minimumBasicConnectionFactoryconfiguration defaults required to connect to the OpenMQ Service.toString()Returns a pretty printed version of the provider specific information for this ConnectionFactory object.Methods 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- 
BasicConnectionFactorypublic BasicConnectionFactory()Constructs a BasicConnectionFactory with the default configuration.
- 
BasicConnectionFactoryConstructs a BasicConnectionFactory with the specified configuration.
 
- 
- 
Method Details- 
createConnectionpublic jakarta.jms.Connection createConnection() throws jakarta.jms.JMSExceptionCreates a Connection with the default user identity. The default user identity is defined by theConnectionFactorypropertiesimqDefaultUsernameandimqDefaultPassword- Specified by:
- createConnectionin interface- jakarta.jms.ConnectionFactory
- Returns:
- a newly created Connection.
- Throws:
- jakarta.jms.JMSException- if a JMS error occurs.
- See Also:
 
- 
createConnectionpublic jakarta.jms.Connection createConnection(String username, String password) throws jakarta.jms.JMSException Creates a Connection with a specified user identity.- Specified by:
- createConnectionin interface- jakarta.jms.ConnectionFactory
- Parameters:
- username- the caller's user name
- password- the caller's password
- Returns:
- a newly created connection.
- Throws:
- jakarta.jms.JMSException- if a JMS error occurs.
 
- 
createContextpublic jakarta.jms.JMSContext createContext()- Specified by:
- createContextin interface- jakarta.jms.ConnectionFactory
 
- 
createContext- Specified by:
- createContextin interface- jakarta.jms.ConnectionFactory
 
- 
createContext- Specified by:
- createContextin interface- jakarta.jms.ConnectionFactory
 
- 
createContextpublic jakarta.jms.JMSContext createContext(int sessionMode) - Specified by:
- createContextin interface- jakarta.jms.ConnectionFactory
 
- 
getContainerTypeprotected static com.sun.messaging.jmq.jmsclient.ContainerType getContainerType()
- 
setConnectionTypeSets the type of connections created by thisBasicConnectionFactory.- Parameters:
- type- The type of connections created by this- BasicConnectionFactory.
 
- 
getConnectionTypeReturns the type of connections created by thisBasicConnectionFactory.- Returns:
- The type of connections created by this BasicConnectionFactory.
 
- 
toStringReturns a pretty printed version of the provider specific information for this ConnectionFactory object.- Overrides:
- toStringin class- AdministeredObject
- Returns:
- the pretty printed string.
 
- 
setDefaultConfigurationpublic void setDefaultConfiguration()Sets the minimumBasicConnectionFactoryconfiguration defaults required to connect to the OpenMQ Service.- Specified by:
- setDefaultConfigurationin class- AdministeredObject
 
 
-