Package com.webmethods.jms
Interface WmConnection
- All Superinterfaces:
javax.jms.Connection
- All Known Subinterfaces:
WmQueueConnection
,WmTopicConnection
public interface WmConnection
extends javax.jms.Connection
Interface defining webMethods extensions to javax.jms.Connection and its subclasses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Encryptionstatic final int
No encryptionstatic final int
Deprecated.static final int
Deprecated.Replaced ByENCRYPT_LEVEL_ENCRYPTION
-
Method Summary
Modifier and TypeMethodDescriptionshort[]
Get the client access labelGet the Broker to which this connection is currently connected.javax.jms.ConnectionFactory
Returns the connection factory used to create this connection.int
Get the SSL encryption level.Get the Broker's SSL certificate properties.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.Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
-
Field Details
-
ENCRYPT_LEVEL_NO_ENCRYPTION
static final int ENCRYPT_LEVEL_NO_ENCRYPTIONNo encryption- See Also:
-
ENCRYPT_LEVEL_US_EXPORT
static final int ENCRYPT_LEVEL_US_EXPORTDeprecated.Replaced ByENCRYPT_LEVEL_ENCRYPTION
Export encryption level- See Also:
-
ENCRYPT_LEVEL_US_DOMESTIC
static final int ENCRYPT_LEVEL_US_DOMESTICDeprecated.Replaced ByENCRYPT_LEVEL_ENCRYPTION
Domestic encryption level- See Also:
-
ENCRYPT_LEVEL_ENCRYPTION
static final int ENCRYPT_LEVEL_ENCRYPTIONEncryption- See Also:
-
-
Method Details
-
getFactory
javax.jms.ConnectionFactory getFactory() throws javax.jms.JMSExceptionReturns 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
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
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.JMSExceptionGet 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
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.JMSExceptionPings 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.JMSExceptionGet the client access label- Returns:
- access labels
- Throws:
javax.jms.JMSException
-
ENCRYPT_LEVEL_ENCRYPTION