Interface JmsJmxConnectionFactory
-
- All Superinterfaces:
javax.jms.ConnectionFactory
- All Known Implementing Classes:
JmsJmxConnectionFactoryImpl
public interface JmsJmxConnectionFactory extends javax.jms.ConnectionFactoryInterface that defines additional functionality that is required to support JMX over JMS.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_BROKER_PASSWORDKey in the initial attributes that specifies the broker password to be associated the underlyingConnectionFactory.static java.lang.StringATTR_BROKER_USERNAMEKey in the initial attributes that specifies the broker user to be associated the underlyingConnectionFactory.static java.lang.StringATTR_CLIENT_IDKey in the initial attributes that specifies the clientid to be associated the underlyingConnectionFactory.static java.lang.StringATTR_DESTINATIONKey in the initial attributes that specifies the destination.static java.lang.StringATTR_DESTINATION_TYPEKey in the initial attributes that specifies the destination type (either "Topic" or "Queue")static java.lang.StringATTR_RETRY_INTERVAL_MSKey in the initial attributes that controls the interval (ms) between attempts to connect to the given broker.static java.lang.StringATTR_TIMEOUT_MSKey in the initial attributes that specifies the timeout value for operations in milliseconds.static longDEFAULT_RETRY_INTERVAL_MSThe default value associated withATTR_RETRY_INTERVAL_MSwhich is 30000L .static longDEFAULT_TIMEOUT_MSThe default value associated withATTR_TIMEOUT_MSwhich is 60000L .
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.adaptris.jmx.remote.jms.JmsInvokerProxycreateInvokerProxy()Create the invoker proxy.ExtendedJmsInvokerServiceExportercreateServiceExporter()Create the invoker proxy.javax.jms.DestinationcreateTemporaryDestination(javax.jms.Session s)Create a temporary destination (either a queue or a topic).voiddestroy()Destroy any resources that may need destroying.javax.jms.DestinationgetTargetDestination()Get the target dstination where you want to send requests and other things to.
-
-
-
Field Detail
-
ATTR_DESTINATION
static final java.lang.String ATTR_DESTINATION
Key in the initial attributes that specifies the destination.The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL.- See Also:
- Constant Field Values
-
ATTR_DESTINATION_TYPE
static final java.lang.String ATTR_DESTINATION_TYPE
Key in the initial attributes that specifies the destination type (either "Topic" or "Queue")The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL.- See Also:
- Constant Field Values
-
ATTR_TIMEOUT_MS
static final java.lang.String ATTR_TIMEOUT_MS
Key in the initial attributes that specifies the timeout value for operations in milliseconds.The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL.- See Also:
DEFAULT_TIMEOUT_MS, Constant Field Values
-
ATTR_CLIENT_ID
static final java.lang.String ATTR_CLIENT_ID
Key in the initial attributes that specifies the clientid to be associated the underlyingConnectionFactory.The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL.- See Also:
- Constant Field Values
-
ATTR_BROKER_USERNAME
static final java.lang.String ATTR_BROKER_USERNAME
Key in the initial attributes that specifies the broker user to be associated the underlyingConnectionFactory.The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL. Where appropriate then the values stored against the standard keyJMXConnector.CREDENTIALSwill supersede both this key and any query parameter.- See Also:
- Constant Field Values
-
ATTR_BROKER_PASSWORD
static final java.lang.String ATTR_BROKER_PASSWORD
Key in the initial attributes that specifies the broker password to be associated the underlyingConnectionFactory.The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL. Where appropriate then the values stored against the standard keyJMXConnector.CREDENTIALSwill supersede both this key and any query parameter.- See Also:
- Constant Field Values
-
ATTR_RETRY_INTERVAL_MS
static final java.lang.String ATTR_RETRY_INTERVAL_MS
Key in the initial attributes that controls the interval (ms) between attempts to connect to the given broker.This value comes into play when the JMS broker is unavailable or an exception has occured with the connection. The underlying
JMXConnectororJMXConnectorServerwill not process any requests until a connection succeeds.- See Also:
DEFAULT_RETRY_INTERVAL_MS, Constant Field Values
-
DEFAULT_RETRY_INTERVAL_MS
static final long DEFAULT_RETRY_INTERVAL_MS
The default value associated withATTR_RETRY_INTERVAL_MSwhich is 30000L .- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT_MS
static final long DEFAULT_TIMEOUT_MS
The default value associated withATTR_TIMEOUT_MSwhich is 60000L .- See Also:
- Constant Field Values
-
-
Method Detail
-
getTargetDestination
javax.jms.Destination getTargetDestination() throws javax.jms.JMSExceptionGet the target dstination where you want to send requests and other things to.- Returns:
- the destination.
- Throws:
javax.jms.JMSException
-
createInvokerProxy
com.adaptris.jmx.remote.jms.JmsInvokerProxy createInvokerProxy() throws javax.jms.JMSExceptionCreate the invoker proxy.- Returns:
- a
JmsInvokerProxyinstance. - Throws:
javax.jms.JMSException- if there was an problem creating the invoker proxy.
-
createServiceExporter
ExtendedJmsInvokerServiceExporter createServiceExporter() throws javax.jms.JMSException
Create the invoker proxy.- Returns:
- a
ExtendedJmsInvokerServiceExporterinstance. - Throws:
javax.jms.JMSException- if there was an problem creating the ServiceExport proxy.
-
createTemporaryDestination
javax.jms.Destination createTemporaryDestination(javax.jms.Session s) throws javax.jms.JMSExceptionCreate a temporary destination (either a queue or a topic).- Parameters:
s- the session- Returns:
- a
TemporaryQueueorTemporaryTopic. - Throws:
javax.jms.JMSException- if there was an error creating the temporary destination.
-
destroy
void destroy()
Destroy any resources that may need destroying.
-
-