|
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
com.sun.messaging.ConnectionFactory
public class ConnectionFactory
A ConnectionFactory
is used to create Connections with
the 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 | |
---|---|
|
ConnectionFactory()
Constructs a ConnectionFactory with the default configuration. |
protected |
ConnectionFactory(java.lang.String defaultsBase)
Constructs a ConnectionFactory with the specified configuration. |
Method Summary | |
---|---|
QueueConnection |
createQueueConnection()
Creates a Queue Connection with the default user identity. |
QueueConnection |
createQueueConnection(java.lang.String username,
java.lang.String password)
Creates a Queue Connection with a specified user identity. |
TopicConnection |
createTopicConnection()
Creates a Topic Connection with the default user identity. |
TopicConnection |
createTopicConnection(java.lang.String username,
java.lang.String password)
Creates a Topic Connection with a specified user identity. |
javax.naming.Reference |
getReference()
Returns the reference to this object. |
Methods inherited from class com.sun.messaging.BasicConnectionFactory |
---|
createConnection, createConnection, getConnectionType, setConnectionType, setDefaultConfiguration, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConnectionFactory()
protected ConnectionFactory(java.lang.String defaultsBase)
Method Detail |
---|
public QueueConnection createQueueConnection() throws JMSException
ConnectionFactory
properties
imqDefaultUsername
and imqDefaultPassword
JMSException
- if a JMS error occurs.ConnectionConfiguration.imqDefaultUsername
,
ConnectionConfiguration.imqDefaultPassword
public QueueConnection createQueueConnection(java.lang.String username, java.lang.String password) throws JMSException
username
- the caller's user namepassword
- the caller's password
JMSException
- 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(java.lang.String username, java.lang.String password) throws JMSException
username
- the caller's user namepassword
- the caller's password
JMSException
- if a JMS error occurs.public javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
|
Message Queue, v4.4 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |