public interface JmsJmxConnectionFactory
extends javax.jms.ConnectionFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_BROKER_PASSWORD
Key in the initial attributes that specifies the broker password to be associated the underlying
ConnectionFactory . |
static java.lang.String |
ATTR_BROKER_USERNAME
Key in the initial attributes that specifies the broker user to be associated the underlying
ConnectionFactory . |
static java.lang.String |
ATTR_CLIENT_ID
Key in the initial attributes that specifies the clientid to be associated the underlying
ConnectionFactory . |
static java.lang.String |
ATTR_DESTINATION
Key in the initial attributes that specifies the destination.
|
static java.lang.String |
ATTR_DESTINATION_TYPE
Key in the initial attributes that specifies the destination type (either "Topic" or "Queue")
|
static 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.
|
static java.lang.String |
ATTR_TIMEOUT_MS
Key in the initial attributes that specifies the timeout value for operations in milliseconds.
|
static long |
DEFAULT_RETRY_INTERVAL_MS
The default value associated with
ATTR_RETRY_INTERVAL_MS which is 30000L . |
static long |
DEFAULT_TIMEOUT_MS
The default value associated with
ATTR_TIMEOUT_MS which is 60000L . |
Modifier and Type | Method and Description |
---|---|
com.adaptris.jmx.remote.jms.JmsInvokerProxy |
createInvokerProxy()
Create the invoker proxy.
|
ExtendedJmsInvokerServiceExporter |
createServiceExporter()
Create the invoker proxy.
|
javax.jms.Destination |
createTemporaryDestination(javax.jms.Session s)
Create a temporary destination (either a queue or a topic).
|
void |
destroy()
Destroy any resources that may need destroying.
|
javax.jms.Destination |
getTargetDestination()
Get the target dstination where you want to send requests and other things to.
|
static final java.lang.String ATTR_DESTINATION
The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL
.
static final java.lang.String ATTR_DESTINATION_TYPE
The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL
.
static final java.lang.String ATTR_TIMEOUT_MS
The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL
.
DEFAULT_TIMEOUT_MS
,
Constant Field Valuesstatic final java.lang.String ATTR_CLIENT_ID
ConnectionFactory
.
The value in the initial attributes can by overriden by specifying this as part of the query portion of the
JMXServiceURL
.
static final java.lang.String ATTR_BROKER_USERNAME
ConnectionFactory
.
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 key JMXConnector.CREDENTIALS
will
supersede both this key and any query parameter.
static final java.lang.String ATTR_BROKER_PASSWORD
ConnectionFactory
.
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 key JMXConnector.CREDENTIALS
will
supersede both this key and any query parameter.
static final java.lang.String ATTR_RETRY_INTERVAL_MS
This value comes into play when the JMS broker is unavailable or an exception has occured with the connection. The underlying
JMXConnector
or JMXConnectorServer
will not process any requests until a connection succeeds.
DEFAULT_RETRY_INTERVAL_MS
,
Constant Field Valuesstatic final long DEFAULT_RETRY_INTERVAL_MS
ATTR_RETRY_INTERVAL_MS
which is 30000L .static final long DEFAULT_TIMEOUT_MS
ATTR_TIMEOUT_MS
which is 60000L .javax.jms.Destination getTargetDestination() throws javax.jms.JMSException
javax.jms.JMSException
com.adaptris.jmx.remote.jms.JmsInvokerProxy createInvokerProxy() throws javax.jms.JMSException
JmsInvokerProxy
instance.javax.jms.JMSException
- if there was an problem creating the invoker proxy.ExtendedJmsInvokerServiceExporter createServiceExporter() throws javax.jms.JMSException
ExtendedJmsInvokerServiceExporter
instance.javax.jms.JMSException
- if there was an problem creating the ServiceExport proxy.javax.jms.Destination createTemporaryDestination(javax.jms.Session s) throws javax.jms.JMSException
s
- the sessionTemporaryQueue
or TemporaryTopic
.javax.jms.JMSException
- if there was an error creating the temporary destination.void destroy()