|
TIBCO Enterprise Message Service Version 4.3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTibjmsxCFImpl
com.tibco.tibjms.TibjmsXAConnectionFactory
Note: XA sessions do not support routed queues.
Reconnect and Fault Tolerance
To enable reconnection behavior and fault tolerance, the connection factory's
server URL parameter must be a comma-separated list of two or more URLs. To
enable client reconnection in a situation with only one server, you may
supply two copies of that server's URL (for example, tcp://localhost:7222,tcp://localhost:7222).
Constructor Summary | |
TibjmsXAConnectionFactory()
|
|
TibjmsXAConnectionFactory(java.lang.String serverUrl)
|
|
TibjmsXAConnectionFactory(java.lang.String serverUrl,
java.lang.String clientId,
java.util.Map properties)
|
Method Summary | |
java.lang.Object |
clone()
|
Connection |
createConnection()
|
Connection |
createConnection(java.lang.String userName,
java.lang.String password)
|
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. |
java.lang.String |
getSSLProxyHost()
Get the SSL proxy host from this connection factory. |
java.lang.String |
getSSLProxyPassword()
Get the SSL proxy password from a connection factory. |
int |
getSSLProxyPort()
Get the SSL proxy port from this connection factory. |
java.lang.String |
getSSLProxyUser()
Get the SSL proxy username from a connection factory. |
void |
setClientID(java.lang.String clientID)
|
void |
setConnAttemptCount(int attempts)
|
void |
setConnAttemptDelay(int delay)
|
void |
setMetric(int metric)
|
void |
setReconnAttemptCount(int attempts)
Set the maximum number of reconnect attempts. |
void |
setReconnAttemptDelay(int delay)
Set the delay between reconnect attempts. |
void |
setServerUrl(java.lang.String serverUrl)
|
void |
setSSLAuthOnly(java.lang.Boolean authOnly)
|
void |
setSSLCipherSuites(java.lang.String suites)
|
void |
setSSLDebugTrace(java.lang.Boolean debugTrace)
|
void |
setSSLEnableVerifyHost(java.lang.Boolean enableVerifyHost)
|
void |
setSSLEnableVerifyHostName(java.lang.Boolean enableVerifyHostName)
|
void |
setSSLExpectedHostName(java.lang.String expectedHostName)
|
void |
setSSLIdentity(byte[] identity)
|
void |
setSSLIdentity(java.lang.String sslIdentity)
|
void |
setSSLIdentityEncoding(java.lang.String sslIdentityEncoding)
|
void |
setSSLIssuerCertificate(byte[] certificate,
java.lang.String encoding)
|
void |
setSSLIssuerCertificate(java.lang.String certificate)
|
void |
setSSLIssuerCertificate(java.lang.String certificate,
java.lang.String encoding)
|
void |
setSSLPassword(java.lang.String sslPassword)
|
void |
setSSLPrivateKey(byte[] sslPrivateKey)
|
void |
setSSLPrivateKey(java.lang.String sslPrivateKey)
|
void |
setSSLPrivateKeyEncoding(java.lang.String sslPrivateKeyEncoding)
|
void |
setSSLProxy(java.lang.String host,
int port)
Set the connection factory's parameters for connecting through an SSL proxy. |
void |
setSSLProxyAuth(java.lang.String username,
java.lang.String password)
Set a connection factory's username and password for connecting through an SSL proxy. |
void |
setSSLRenegotiateInterval(java.lang.Integer sslRenegotiateInterval)
Deprecated. This method is no longer supported, and may be removed from future versions of EMS. |
void |
setSSLRenegotiateSize(java.lang.Integer sslRegotiateSize)
Deprecated. This method is no longer supported, and may be removed from future versions of EMS. |
void |
setSSLTrace(java.lang.Boolean trace)
|
void |
setSSLTrustedCertificate(byte[] certificate,
java.lang.String trustedEncoding)
|
void |
setSSLTrustedCertificate(java.lang.String certificate)
|
void |
setSSLTrustedCertificate(java.lang.String certificate,
java.lang.String trustedEncoding)
|
void |
setSSLVendor(java.lang.String vendor)
|
void |
setUserName(java.lang.String username)
|
void |
setUserPassword(java.lang.String password)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.naming.Referenceable |
getReference |
Constructor Detail |
public TibjmsXAConnectionFactory()
public TibjmsXAConnectionFactory(java.lang.String serverUrl)
public TibjmsXAConnectionFactory(java.lang.String serverUrl, java.lang.String clientId, java.util.Map properties)
Method Detail |
public XAConnection createXAConnection() throws JMSException
XAConnectionFactory
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.public XAConnection createXAConnection(java.lang.String userName, java.lang.String password) throws JMSException
XAConnectionFactory
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.public Connection createConnection() throws JMSException
JMSException
public Connection createConnection(java.lang.String userName, java.lang.String password) throws JMSException
JMSException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void setServerUrl(java.lang.String serverUrl) throws JMSException
JMSException
public void setClientID(java.lang.String clientID) throws JMSException
JMSException
public void setMetric(int metric) throws JMSException
JMSException
public void setConnAttemptCount(int attempts)
public void setConnAttemptDelay(int delay)
public void setReconnAttemptCount(int attempts)
public void setReconnAttemptDelay(int delay)
public void setUserName(java.lang.String username)
public void setUserPassword(java.lang.String password)
public void setSSLVendor(java.lang.String vendor)
public void setSSLTrace(java.lang.Boolean trace)
public void setSSLDebugTrace(java.lang.Boolean debugTrace)
public void setSSLEnableVerifyHost(java.lang.Boolean enableVerifyHost)
public void setSSLEnableVerifyHostName(java.lang.Boolean enableVerifyHostName)
public void setSSLExpectedHostName(java.lang.String expectedHostName)
public void setSSLAuthOnly(java.lang.Boolean authOnly)
public void setSSLTrustedCertificate(java.lang.String certificate)
public void setSSLTrustedCertificate(java.lang.String certificate, java.lang.String trustedEncoding)
public void setSSLTrustedCertificate(byte[] certificate, java.lang.String trustedEncoding)
public void setSSLIssuerCertificate(java.lang.String certificate)
public void setSSLIssuerCertificate(java.lang.String certificate, java.lang.String encoding)
public void setSSLIssuerCertificate(byte[] certificate, java.lang.String encoding)
public void setSSLIdentity(java.lang.String sslIdentity)
public void setSSLIdentity(byte[] identity)
public void setSSLIdentityEncoding(java.lang.String sslIdentityEncoding)
public void setSSLPrivateKey(java.lang.String sslPrivateKey)
public void setSSLPrivateKey(byte[] sslPrivateKey)
public void setSSLPrivateKeyEncoding(java.lang.String sslPrivateKeyEncoding)
public void setSSLPassword(java.lang.String sslPassword)
public void setSSLRenegotiateSize(java.lang.Integer sslRegotiateSize)
public void setSSLRenegotiateInterval(java.lang.Integer sslRenegotiateInterval)
public void setSSLCipherSuites(java.lang.String suites)
public void setSSLProxy(java.lang.String host, int port) throws JMSException
host
- the connection factory establishes SSL communication through
a web proxy at this host. Supply a simple hostname, a fully qualified
hostname with domain name, or an IP address (dot notation).port
- the connection factory establishes SSL communication through
a web proxy on this port.
JMSException
- if the proxy host is null or empty, the port is zero or the protocol
of the connection factory's URL is not SSL.public void setSSLProxyAuth(java.lang.String username, java.lang.String password) throws JMSException
username
- the connection factory authenticates itself to the SSL
proxy using this username.password
- the connection factory authenticates itself to the SSL
proxy using this password.
JMSException
- if the protocol of the connection factory's URL is not SSL.public java.lang.String getSSLProxyHost() throws JMSException
JMSException
- if the protocol of the connection factory's URL is not SSL.public int getSSLProxyPort() throws JMSException
JMSException
- if the protocol of the connection factory's URL is not SSL.public java.lang.String getSSLProxyUser() throws JMSException
JMSException
- if the protocol of the connection factory's URL is not SSL.public java.lang.String getSSLProxyPassword() throws JMSException
JMSException
- if the protocol of the connection factory's URL is not SSL.
|
TIBCO Enterprise Message Service Version 4.3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |