|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprogress.message.jclient.ConnectionFactory
progress.message.jclient.QueueConnectionFactory
public class QueueConnectionFactory
An implementation of a JMS QueueConnectionFactory. A client uses a QueueConnectionFactory to create QueueConnections with a JMS PTP provider.
QueueConnectionFactory
,
Serialized FormField Summary |
---|
Constructor Summary | |
---|---|
QueueConnectionFactory()
Construct a QueueConnectionFactory with the default URL |
|
QueueConnectionFactory(java.lang.String brokerURL)
Construct a QueueConnectionFactory (with a default connectID, user and password of ""). |
|
QueueConnectionFactory(java.lang.String brokerHostName,
int brokerPort,
java.lang.String brokerProtocol,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
Construct a QueueConnectionFactory (with a default connectID of null). |
|
QueueConnectionFactory(java.lang.String brokerHostName,
int brokerPort,
java.lang.String brokerProtocol,
java.lang.String connectID,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
Construct a QueueConnectionFactory. |
|
QueueConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID)
Construct a QueueConnectionFactory (with a default user and password of ""). |
|
QueueConnectionFactory(java.lang.String brokerURL,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
Construct a QueueConnectionFactory (with a default connectID of null). |
|
QueueConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
Construct a QueueConnectionFactory. |
Method Summary | |
---|---|
QueueConnection |
createQueueConnection()
Create a queue connection with default user identity. |
QueueConnection |
createQueueConnection(java.lang.String userName,
java.lang.String password)
Create a queue connection with specified user identity. |
javax.naming.Reference |
getReference()
Return a javax.naming.Reference object which contains the reference information necessary to create an object of the proper type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.ConnectionFactory |
---|
createConnection, createConnection |
Constructor Detail |
---|
public QueueConnectionFactory() throws JMSException
JMSException
public QueueConnectionFactory(java.lang.String brokerURL) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which connection are made.
JMSException
- if a connection factory can not be created.public QueueConnectionFactory(java.lang.String brokerURL, java.lang.String connectID) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which connection are made.connectID
- the id string used to identify connection. May be null.
JMSException
- if a connection factory can not be created.public QueueConnectionFactory(java.lang.String brokerURL, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which connection are made.defaultUserName
- the default user namedefaultPassword
- the default password
JMSException
- if a connection factory can not be created.public QueueConnectionFactory(java.lang.String brokerURL, java.lang.String connectID, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which connection are made.connectID
- the id string used to identify connection. This may be null.defaultUserName
- the default user namedefaultPassword
- the default password
JMSException
- if a connection factory can not be created.public QueueConnectionFactory(java.lang.String brokerHostName, int brokerPort, java.lang.String brokerProtocol, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
brokerHostName
- the broker host name,brokerPort
- the broker port numberbrokerProtocol
- the broker protocol, can be null or ""defaultUserName
- the default user namedefaultPassword
- the default password
JMSException
- if a connection factory can not be created.public QueueConnectionFactory(java.lang.String brokerHostName, int brokerPort, java.lang.String brokerProtocol, java.lang.String connectID, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
brokerHostName
- the broker host name,brokerPort
- the broker port numberbrokerProtocol
- the broker protocol, can be null or ""connectID
- the id string used to identify connection. This may be null.defaultUserName
- the default user namedefaultPassword
- the default password
JMSException
- if a connection factory can not be created.Method Detail |
---|
public QueueConnection createQueueConnection() throws JMSException
createQueueConnection
in interface QueueConnectionFactory
JMSException
- if JMS Provider fails to create a Queue Connection
due to some internal error.
JMSSecurityException
- if client authentication fails due to
invalid user name or password.public QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password) throws JMSException
createQueueConnection
in interface QueueConnectionFactory
userName
- the caller's user namepassword
- the caller's password
JMSException
- if JMS Provider fails to create a Queue Connection
due to some internal error.
JMSSecurityException
- if client authentication fails due to
invalid user name or password.public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
getReference
in class ConnectionFactory
javax.naming.NamingException
- if the object naming is invalid.
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |