|
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.TopicConnectionFactory
progress.message.jclient.xa.XATopicConnectionFactory
public class XATopicConnectionFactory
An XATopicConnectionFactory provides the same create options as TopicConnectionFactory (optional).
TopicConnectionFactory
,
XAConnectionFactory
,
Serialized FormField Summary |
---|
Constructor Summary | |
---|---|
XATopicConnectionFactory()
Construct an XATopicConnectionFactory connecting to the broker at localhost, with a default connectID, user and password of "". |
|
XATopicConnectionFactory(java.lang.String brokerURL)
Construct an XATopicConnectionFactory (with a default connectID, user and password of ""). |
|
XATopicConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID,
java.lang.String userName,
java.lang.String password)
Construct an XATopicConnectionFactory. |
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. |
XATopicConnection |
createXATopicConnection()
Create an XA topic connection with default user identity. |
XATopicConnection |
createXATopicConnection(java.lang.String userName,
java.lang.String password)
Create an XA topic 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.TopicConnectionFactory |
---|
createTopicConnection, createTopicConnection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.TopicConnectionFactory |
---|
createTopicConnection, createTopicConnection |
Methods inherited from interface javax.jms.ConnectionFactory |
---|
createConnection, createConnection |
Constructor Detail |
---|
public XATopicConnectionFactory() throws JMSException
JMSException
- if a XA connection factory can not be created.public XATopicConnectionFactory(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 XATopicConnectionFactory(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 XATopicConnection 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 XATopicConnection createXATopicConnection() throws JMSException
createXATopicConnection
in interface XATopicConnectionFactory
JMSException
- if JMS Provider fails to create XA topic Connection
due to some internal error.
JMSSecurityException
- if client authentication fails due to
invalid user name or password.public XATopicConnection createXATopicConnection(java.lang.String userName, java.lang.String password) throws JMSException
createXATopicConnection
in interface XATopicConnectionFactory
userName
- the caller's user namepassword
- the caller's password
JMSException
- if JMS Provider fails to create XA topic 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 TopicConnectionFactory
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 |