|
Message Queue, v4.4 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.messaging.AdministeredObject
com.sun.messaging.BasicConnectionFactory
public class BasicConnectionFactory
A 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 FormField Summary |
---|
Fields inherited from class com.sun.messaging.AdministeredObject |
---|
AO_PROPERTY_TYPE_BOOLEAN, AO_PROPERTY_TYPE_INTEGER, AO_PROPERTY_TYPE_LIST, AO_PROPERTY_TYPE_LONG, AO_PROPERTY_TYPE_PROPERTYOWNER, AO_PROPERTY_TYPE_STRING, configuration, configurationLabels, configurationTypes, cr, storedVersion, VERSION |
Constructor Summary | |
---|---|
|
BasicConnectionFactory()
Constructs a BasicConnectionFactory with the default configuration. |
protected |
BasicConnectionFactory(java.lang.String defaultsBase)
Constructs a BasicConnectionFactory with the specified configuration. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicConnectionFactory()
protected BasicConnectionFactory(java.lang.String defaultsBase)
Method Detail |
---|
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 password
JMSException
- 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
|
Message Queue, v4.4 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |