Package com.webmethods.jms
Interface WmConnection
-
- All Superinterfaces:
javax.jms.Connection
- All Known Subinterfaces:
WmQueueConnection
,WmTopicConnection
- All Known Implementing Classes:
WmClusterConnectionImpl
,WmClusterConnectionWorker
,WmClusterQueueConnectionImpl
,WmClusterTopicConnectionImpl
,WmClusterXAConnectionImpl
,WmClusterXAQueueConnectionImpl
,WmClusterXATopicConnectionImpl
,WmCompositeClusterConnectionImpl
,WmCompositeClusterQueueConnectionImpl
,WmCompositeClusterTopicConnectionImpl
,WmCompositeClusterXAConnectionImpl
,WmCompositeClusterXAQueueConnectionImpl
,WmCompositeClusterXATopicConnectionImpl
,WmConnectionImpl
,WmQueueConnectionImpl
,WmTopicConnectionImpl
,WmXAConnectionImpl
,WmXAQueueConnectionImpl
,WmXATopicConnectionImpl
public interface WmConnection extends javax.jms.Connection
Interface defining webMethods extensions to javax.jms.Connection and its subclasses.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ENCRYPT_LEVEL_ENCRYPTION
Encryptionstatic int
ENCRYPT_LEVEL_NO_ENCRYPTION
No encryptionstatic int
ENCRYPT_LEVEL_US_DOMESTIC
Deprecated.Replaced ByENCRYPT_LEVEL_ENCRYPTION
static int
ENCRYPT_LEVEL_US_EXPORT
Deprecated.Replaced ByENCRYPT_LEVEL_ENCRYPTION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description short[]
getAccessLabel()
Get the client access labeljava.lang.String
getBroker()
Get the Broker to which this connection is currently connected.javax.jms.ConnectionFactory
getFactory()
Returns the connection factory used to create this connection.int
getSSLEncryptionLevel()
Get the SSL encryption level.java.util.Properties
getSSLServerCertificate()
Get the Broker's SSL certificate properties.java.lang.String
getTerritory()
Get the territory of the Broker to which this connection is currently connected.void
ping()
Pings the Broker to determine if there is network connectivity.
-
-
-
Field Detail
-
ENCRYPT_LEVEL_NO_ENCRYPTION
static final int ENCRYPT_LEVEL_NO_ENCRYPTION
No encryption- See Also:
- Constant Field Values
-
ENCRYPT_LEVEL_US_EXPORT
static final int ENCRYPT_LEVEL_US_EXPORT
Deprecated.Replaced ByENCRYPT_LEVEL_ENCRYPTION
Export encryption level- See Also:
- Constant Field Values
-
ENCRYPT_LEVEL_US_DOMESTIC
static final int ENCRYPT_LEVEL_US_DOMESTIC
Deprecated.Replaced ByENCRYPT_LEVEL_ENCRYPTION
Domestic encryption level- See Also:
- Constant Field Values
-
ENCRYPT_LEVEL_ENCRYPTION
static final int ENCRYPT_LEVEL_ENCRYPTION
Encryption- See Also:
- Constant Field Values
-
-
Method Detail
-
getFactory
javax.jms.ConnectionFactory getFactory() throws javax.jms.JMSException
Returns the connection factory used to create this connection.- Returns:
- the connection factory used to create his connection
- Throws:
javax.jms.JMSException
- if the JMS provider fails to get the connection factory for this connection.
-
getBroker
java.lang.String getBroker() throws javax.jms.JMSException
Get the Broker to which this connection is currently connected.- Returns:
- the Broker name
- Throws:
javax.jms.JMSException
- if the JMS provider fails to get the Broker for this connection
-
getTerritory
java.lang.String getTerritory() throws javax.jms.JMSException
Get the territory of the Broker to which this connection is currently connected.- Returns:
- the territory name
- Throws:
javax.jms.JMSException
- if the JMS provider fails to get the territory
-
getSSLEncryptionLevel
int getSSLEncryptionLevel() throws javax.jms.JMSException
Get the SSL encryption level.- Returns:
ENCRYPT_LEVEL_NO_ENCRYPTION
orENCRYPT_LEVEL_ENCRYPTION
- Throws:
javax.jms.JMSException
- if the JMS provider fails to get the encryption level for this connection.
-
getSSLServerCertificate
java.util.Properties getSSLServerCertificate() throws javax.jms.JMSException
Get the Broker's SSL certificate properties. The included property names are: "subjectDn", "issuerDn", "status" "serialNumber", "beginDate", "endDate".- Returns:
- the server certificate properties, or
null
if not an SSL connection - Throws:
javax.jms.JMSException
- if the JMS provider fails to get the server certificate for this connection.
-
ping
void ping() throws javax.jms.JMSException
Pings the Broker to determine if there is network connectivity.- Throws:
javax.jms.JMSException
- if the JMS provider fails to ping the Broker
-
getAccessLabel
short[] getAccessLabel() throws javax.jms.JMSException
Get the client access label- Returns:
- access labels
- Throws:
javax.jms.JMSException
-
-