|
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
progress.message.jclient.xa.XAQueueConnectionFactory
public class XAQueueConnectionFactory
An XAQueueConnectionFactory provides the same create options as a QueueConnectionFactory (optional).
QueueConnectionFactory
,
XAConnectionFactory
,
Serialized FormField Summary |
---|
Constructor Summary | |
---|---|
XAQueueConnectionFactory()
Construct an XAQueueConnectionFactory connecting to the broker at localhost, with a default connectID, user and password of "". |
|
XAQueueConnectionFactory(java.lang.String brokerURL)
Construct an XAQueueConnectionFactory (with a default connectID, user and password of ""). |
|
XAQueueConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID,
java.lang.String userName,
java.lang.String password)
Construct an XAQueueConnectionFactory. |
Method Summary | |
---|---|
XAConnection |
createXAConnection()
Creates an XAConnection with the default user identity. |
XAConnection |
createXAConnection(java.lang.String userName,
java.lang.String password)
Creates an XA connection with the specified user identity. |
XAQueueConnection |
createXAQueueConnection()
Create an XA queue connection with default user identity. |
XAQueueConnection |
createXAQueueConnection(java.lang.String userName,
java.lang.String password)
Create an XA queue connection with specific user identity. |
java.lang.String |
getPassword()
Get password. |
javax.naming.Reference |
getReference()
Retrieves the Reference of this object. |
java.lang.String |
getUserName()
Get User Name. |
void |
setPassword(java.lang.String password)
Set password. |
void |
setUserName(java.lang.String username)
Set user name. |
Methods inherited from class progress.message.jclient.QueueConnectionFactory |
---|
createQueueConnection, createQueueConnection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.QueueConnectionFactory |
---|
createQueueConnection, createQueueConnection |
Methods inherited from interface javax.jms.ConnectionFactory |
---|
createConnection, createConnection |
Constructor Detail |
---|
public XAQueueConnectionFactory() throws JMSException
JMSException
- if a XA connection factory can not be created.public XAQueueConnectionFactory(java.lang.String brokerURL) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which XA connection are made.
JMSException
- if a XA connection factory can not be created.public XAQueueConnectionFactory(java.lang.String brokerURL, java.lang.String connectID, java.lang.String userName, java.lang.String password) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which XA connection are made.connectID
- the id string used to identify the regular connection
and the coresponding XAQueueConnection with a system assigned prefix.
This may be null.userName
- the default user namepassword
- the default password
JMSException
- if a connection factory can not be created.Method Detail |
---|
public XAQueueConnection createXAQueueConnection() throws JMSException
createXAQueueConnection
in interface XAQueueConnectionFactory
JMSException
- if JMS Provider fails to create XA queue Connection
due to some internal error.
JMSSecurityException
- if client authentication fails due to
invalid user name or password.public XAQueueConnection createXAQueueConnection(java.lang.String userName, java.lang.String password) throws JMSException
createXAQueueConnection
in interface XAQueueConnectionFactory
userName
- the caller's user namepassword
- the caller's password
JMSException
- if JMS Provider fails to create XA queue Connection
due to some internal error.
JMSSecurityException
- if client authentication fails due to
invalid user name or password.public XAConnection createXAConnection() throws JMSException
XAConnection
with the default user identity.
The connection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXAConnection
in interface XAConnectionFactory
XAConnection
JMSException
- if the JMS provider fails to create an XA
connection due to some internal error.
JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public XAConnection createXAConnection(java.lang.String userName, java.lang.String password) throws JMSException
Connection.start
method
is explicitly called.
createXAConnection
in interface XAConnectionFactory
userName
- the caller's user namepassword
- the caller's password
JMSException
- if the JMS provider fails to create an XA
connection due to some internal error.
JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public java.lang.String getUserName()
public java.lang.String getPassword()
public void setUserName(java.lang.String username)
username
- the user name.public void setPassword(java.lang.String password)
password
- the password.public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
getReference
in class QueueConnectionFactory
javax.naming.NamingException
- If a naming exception was encountered
while retrieving the reference.
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |