public class TibjmsXAConnectionFactory extends TibjmsxCFImpl implements XAConnectionFactory, java.lang.Cloneable, java.io.Serializable, javax.naming.Referenceable
Constructor and Description |
---|
TibjmsXAConnectionFactory() |
TibjmsXAConnectionFactory(java.lang.String serverUrl) |
TibjmsXAConnectionFactory(java.lang.String serverUrl,
java.lang.String clientId) |
TibjmsXAConnectionFactory(java.lang.String serverUrl,
java.lang.String clientId,
java.util.Map properties) |
Modifier and Type | Method and Description |
---|---|
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
XAConnection with the specified user identity. |
XAJMSContext |
createXAContext()
Creates a
XAJMSContext with the default user identity |
XAJMSContext |
createXAContext(java.lang.String userName,
java.lang.String password)
Creates a JMSContext with the specified user identity
|
java.lang.String |
getSSLProxyHost()
Get the TLS proxy host from this connection factory.
|
java.lang.String |
getSSLProxyPassword()
Get the TLS proxy password from a connection factory.
|
int |
getSSLProxyPort()
Get the TLS proxy port from this connection factory.
|
java.lang.String |
getSSLProxyUser()
Get the TLS proxy username from a connection factory.
|
void |
setClientID(java.lang.String clientID) |
void |
setConnAttemptCount(int attempts) |
void |
setConnAttemptDelay(int delay) |
void |
setConnAttemptTimeout(int connectAttemptTimeout) |
void |
setMetric(int metric) |
void |
setMulticastDaemon(java.lang.String port)
Deprecated.
As of release 8.3
|
void |
setMulticastEnabled(boolean enabled)
Deprecated.
As of release 8.3
|
void |
setReconnAttemptCount(int attempts) |
void |
setReconnAttemptDelay(int delay) |
void |
setReconnAttemptTimeout(int reconnectAttemptTimeout) |
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 a TLS
proxy.
|
void |
setSSLProxyAuth(java.lang.String username,
java.lang.String password)
Set a connection factory's username and password for connecting through
a TLS proxy.
|
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) |
public TibjmsXAConnectionFactory()
public TibjmsXAConnectionFactory(java.lang.String serverUrl)
public TibjmsXAConnectionFactory(java.lang.String serverUrl, java.lang.String clientId)
public TibjmsXAConnectionFactory(java.lang.String serverUrl, java.lang.String clientId, java.util.Map properties)
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.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
XAConnectionFactory
XAConnection
with the specified 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
userName
- the caller's user namepassword
- the caller's passwordXAConnection
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 XAJMSContext createXAContext()
XAConnectionFactory
XAJMSContext
with the default user identity
A connection and session are created for use by the new XAJMSContext
.
The connection is created in stopped mode but will be automatically started
when a JMSConsumer
is created.
createXAContext
in interface XAConnectionFactory
XAJMSContext
public XAJMSContext createXAContext(java.lang.String userName, java.lang.String password)
XAConnectionFactory
A connection and session are created for use by the new XAJMSContext
.
The connection is created in stopped mode but will be automatically started
when a JMSConsumer
is created.
createXAContext
in interface XAConnectionFactory
userName
- the caller's user namepassword
- the caller's passwordpublic 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 setConnAttemptTimeout(int connectAttemptTimeout)
public void setReconnAttemptCount(int attempts)
public void setReconnAttemptDelay(int delay)
public void setReconnAttemptTimeout(int reconnectAttemptTimeout)
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 setSSLCipherSuites(java.lang.String suites)
public void setSSLProxy(java.lang.String host, int port) throws JMSException
host
- the connection factory establishes TLS 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 TLS 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 TLS.public void setSSLProxyAuth(java.lang.String username, java.lang.String password) throws JMSException
username
- the connection factory authenticates itself to the TLS
proxy using this username.password
- the connection factory authenticates itself to the TLS
proxy using this password.JMSException
- if the protocol of the connection factory's URL is not TLS.public java.lang.String getSSLProxyHost() throws JMSException
JMSException
- if the protocol of the connection factory's URL is not TLS.public int getSSLProxyPort() throws JMSException
JMSException
- if the protocol of the connection factory's URL is not TLS.public java.lang.String getSSLProxyUser() throws JMSException
JMSException
- if the protocol of the connection factory's URL is not TLS.public java.lang.String getSSLProxyPassword() throws JMSException
JMSException
- if the protocol of the connection factory's URL is not TLS.@Deprecated public void setMulticastEnabled(boolean enabled)
enabled
- true
to enable multicast, false
to disable multicast@Deprecated public void setMulticastDaemon(java.lang.String port)
port
- the port of the multicast daemonCopyright © Cloud Software Group, Inc. All rights reserved