JMS Connector Reference 1.10 | MuleSoft Documentation
# JMS Connector Reference 1.10
Anypoint Connector for JMS (JMS Connector) is a JMS 1.0.2b, 1.1, and 2.0 compliant MuleSoft Extension, used to consume and produce JMS messages. The extension supports all JMS functionality including topics and queues, durable subscribers, acknowledgment modes and local transactions.
Release Notes: JMS Connector Release Notes
## Configurations
### Default Configuration
Base configuration for JMS Connector
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
The name for this configuration. Connectors reference the configuration with this name.  
The default encoding of the message body to use if the message doesn’t communicate it  
**Content Type** |  The default contentType of the message body to use if the message doesn’t communicate it  
**Send Correlation Id** |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  Whether to specify a correlationId when publishing messages. This applies both for custom correlation IDs specifies at the operation level and for default correlation IDs taken from the current event  
**Expiration Policy** |  Expiration Policy |  Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the platform expires the instance at the exact moment that it becomes eligible. Mule purges the instances as appropriate.  
Enumeration, one of:
  * IMMEDIATE
  * MANUAL
  * DUPS_OK

|  The ConsumerAckMode to use when consuming a message. Can be overridden at the message source level. This attribute has to be IMMEDIATE if transactionType is LOCAL or MULTI  
**Consumer Type** |  One of:
  * queue-consumer
  * 
|  The ConsumerType to use by default when consuming a message. Can be overridden at the message source level.  
Default selector to use for filtering when consuming a message. Can be overridden at the message source level.  
**Max Redelivery** |  Do not configure this parameter here, as it has no effect. See [ActiveMQConnectionFactoryConfiguration]  
**Persistent Delivery** |  Sets the default value for the Message#getJMSDeliveryMode. If true, the DeliveryMode#PERSISTENT mode will be used, which instructs the JMS provider to take extra care to insure the message is not lost in transit due to a JMS provider failure.  
Defines the default Message#getJMSPriority to use when sending messages  
**Time To Live** |  Defines the default time the message is in the broker before it expires and is discarded  
**Time To Live Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  A TimeUnit which qualifies the #timeToLive attribute. Defaults to MILLISECONDS |  MILLISECONDS  
**Disable Message Id** |  Defines the default value to use when producing messages, for disabling the Message#getJMSMessageID generation in the broker. Depending on the provider it may or may not have effect  
**Disable Message Timestamp** |  Defines the default value to use, when producing messages, for disable Message#getJMSTimestamp generation in the broker. Depending on the provider it may or may not have effect.  
**Delivery Delay** |  This is used to determine the message delivery delay time which is calculated by adding the deliveryDelay value specified on the send method to the time the message was sent. Only used in JmsSpecification#JMS_2_0  
**Delivery Delay Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  A TimeUnit which qualifies the #deliveryDelay attribute. Defaults to MILLISECONDS |  MILLISECONDS  
A message JMSType identifier supplied by a client when a message is sent.  
## Operations
  * Publish Consume
  * Recover Session


### Associated Sources
  * On New Message


### Consume
`<jms:consume>`
Operation that allows the user to consume a single message from a given Destination.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Configuration** |  The name of the configuration to use.  
**Destination** |  The name of the Destination from where the message should be consumed  
**Consumer Type** |  One of:
  * queue-consumer
  * 
|  The type of the MessageConsumer that is required for the given destination, along with any extra configurations that are required based on the destination type.  
Enumeration, one of:
  * IMMEDIATE
  * MANUAL

|  The ConsumerAckMode to configure over the message and Session  
A custom JMS selector for filtering the messages  
**Content Type** |  The Message’s content type  
The Message’s content encoding  
**Maximum Wait** |  Maximum time to wait for a message before timing out  
**Maximum Wait Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit to use in the maximumWaitTime configurations |  MILLISECONDS  
**Transactional Action** |  Enumeration, one of:
  * ALWAYS_JOIN
  * JOIN_IF_POSSIBLE
  * NOT_SUPPORTED

|  The type of joining action that operations can take regarding transactions. |  JOIN_IF_POSSIBLE  
**Target Variable** |  The name of a variable to store the operation’s output.  
**Target Value** |  An expression to evaluate against the operation’s output and store the expression outcome in the target variable  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  A retry strategy in case of connectivity errors.  
#### Output
Attributes Type |  JMS Attributes  
---|---  
### For Configurations
  * Default Configuration


#### Throws
  * JMS:RETRY_EXHAUSTED
  * JMS:ACK
  * JMS:DESTINATION_NOT_FOUND
  * JMS:SECURITY
  * JMS:TIMEOUT
  * JMS:CONNECTIVITY
  * JMS:CONSUMING


### Publish
`<jms:publish>`
Operation that allows the user to send a message to a JMS Destination.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Configuration** |  The name of the configuration to use.  
**Destination** |  The name of the Destination where the message should be sent  
**Destination Type** |  Enumeration, one of:
  * QUEUE
  * TOPIC

|  The DestinationType of the destination  
**Transactional Action** |  Enumeration, one of:
  * ALWAYS_JOIN
  * JOIN_IF_POSSIBLE
  * NOT_SUPPORTED

|  Transactional Action for the operation. Indicates if the publish must be executed or not in a transaction. |  JOIN_IF_POSSIBLE  
**Send Correlation Id** |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  options on whether to include an outbound correlation ID or not  
The body of the message  
The JMSType header of the message  
**Correlation ID** |  The JMSCorrelationID header of the message  
**Send Content-Type** |  True if the body type should be sent as a message property  
**Content-Type** |  The content type of the body  
**Send Encoding** |  True if the body outboundEncoding should be sent as a message property  
The outboundEncoding of the message’s body  
JMS Destination |  The JMSReplyTo header information of the Destination where this message should be replied to  
**User Properties** |  The custom user properties that should be set to this message  
**JMSX Properties** |  JMSX Properties |  The JMSX properties that should be set to this message  
**Persistent Delivery** |  If true, the message is sent using the PERSISTENT JMSDeliveryMode  
The default JMSPriority value to use when sending the message  
**Time To Live** |  Defines the default time the message is in the broker before it expires and is discarded  
**Time To Live Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit to use in the timeToLive configurations  
**Disable Message Id** |  If true, the message is flagged to avoid generating its MessageID  
**Disable Message Timestamp** |  If true, the message is flagged to avoid generating its sent Timestamp  
**Delivery Delay** |  Only used by JMS 2.0. Sets the delivery delay to be applied to postpone the message delivery  
**Delivery Delay Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit to use in the deliveryDelay configurations  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  A retry strategy in case of connectivity errors.  
### For Configurations
  * Default Configuration
|  Time unit to use in the timeToLive configurations  
**Disable Message Id** |  If true, the message is flagged to avoid generating its MessageID  
**Disable Message Timestamp** |  If true, the message is flagged to avoid generating its sent Timestamp  
**Delivery Delay** |  Only used by JMS 2.0. Sets the delivery delay to be applied to postpone the message delivery  
**Delivery Delay Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit to use in the deliveryDelay configurations  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  A retry strategy in case of connectivity errors.  
### For Configurations
  * Default Configuration


#### Throws
  * JMS:RETRY_EXHAUSTED
  * JMS:ILLEGAL_BODY
  * JMS:PUBLISHING
  * JMS:DESTINATION_NOT_FOUND
  * JMS:SECURITY
  * JMS:CONNECTIVITY


### Publish Consume
`<jms:publish-consume>`
Operation that allows the user to send a message to a JMS Destination and waits for a response either to the provided ReplyTo destination or to a temporary Destination created dynamically.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Configuration** |  The name of the configuration to use.  
**Destination** |  The name of the Destination where the message should be sent  
**Request-Reply Pattern** |  Enumeration, one of:
  * CORRELATION_ID
  * MESSAGE_ID

|  CORRELATION_ID  
**Send Correlation ID** |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  options on whether to include an outbound correlation ID or not  
The body of the message  
The JMSType header of the message  
**Correlation ID** |  The JMSCorrelationID header of the message  
**Send Content-Type** |  True if the body type should be sent as a message property  
**Content-Type** |  The content type of the body  
**Send Encoding** |  True if the body outboundEncoding should be sent as a message property  
The outboundEncoding of the message’s body  
JMS Destination |  The JMSReplyTo header information of the Destination where this message should be replied to  
**User Properties** |  The custom user properties that should be set to this message  
**JMSX Properties** |  JMSX Properties |  The JMSX properties that should be set to this message  
**Persistent Delivery** |  If true, the message is sent using the PERSISTENT JMSDeliveryMode  
The default JMSPriority value to use when sending the message  
**Time To Live** |  Defines the default time the message is in the broker before it expires and is discarded  
**Time To Live Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit to use in the timeToLive configurations  
**Disable Message Id** |  If true, the message is flagged to avoid generating its MessageID  
**Disable Message Timestamp** |  If true, the message is flagged to avoid generating its sent Timestamp  
**Delivery Delay** |  Only used by JMS 2.0. Sets the delivery delay to be applied to postpone the message delivery  
**Delivery Delay Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit to use in the deliveryDelay configurations  
Enumeration, one of:
  * IMMEDIATE
  * MANUAL

|  The Session ACK mode to use when consuming the message  
**Maximum Wait** |  Maximum time to wait for a message to arrive before timeout  
**Maximum Wait Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit to use in the maximumWaitTime configuration |  MILLISECONDS  
**Content Type** |  The content type of the message body to be consumed  
The encoding of the message body to be consumed  
**Target Variable** |  The name of a variable to store the operation’s output.  
**Target Value** |  An expression to evaluate against the operation’s output and store the expression outcome in the target variable  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  A retry strategy in case of connectivity errors.  
#### Output
Attributes Type |  JMS Attributes  
---|---  
### For Configurations
  * Default Configuration


#### Throws
  * JMS:RETRY_EXHAUSTED
  * JMS:ILLEGAL_BODY
  * JMS:ACK
  * JMS:PUBLISHING
  * JMS:DESTINATION_NOT_FOUND
  * JMS:SECURITY
  * JMS:TIMEOUT
  * JMS:CONNECTIVITY
  * JMS:CONSUMING


`<jms:ack>`
Allows the user to perform an ACK when the AckMode#MANUAL mode is elected while consuming the Message. As per JMS Spec, performing an ACK over a single message automatically works as an ACK for all the Messages produced in the same JmsSession.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
The AckId of the message to ACK  
#### Throws
### Recover Session
`<jms:recover-session>`
Allows the user to perform a session recover when the AckMode#MANUAL mode is elected while consuming the Message. As per JMS Spec, performing a session recover automatically redelivers all the consumed messages that had not being acknowledged before this recover.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
The AckId of the message Session to recover  
#### Throws
  * JMS:SESSION_RECOVER


## Sources
### On New Message
`<jms:listener>`
JMS Subscriber for Destinations, allows to listen for incoming Messages
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Configuration** |  The name of the configuration to use.  
**Destination** |  The name of the Destination from where the message should be consumed  
**Consumer Type** |  One of:
  * queue-consumer
  * 
|  The Type of the Consumer that should be used for the provided destination  
**Acknowledge Mode** |  Enumeration, one of:
  * IMMEDIATE
  * MANUAL
  * DUPS_OK

|  The Session ACK mode to use when consuming a message  
JMS selector to use for filtering incoming messages  
**Inbound Content-Type** |  The content type of the message body  
**Inbound Encoding** |  The inboundEncoding of the message body  
**Number Of Consumers** |  The number of concurrent consumers to use to receive JMS Messages  
**Transactional Action** |  Enumeration, one of:
  * ALWAYS_BEGIN

|  The type of beginning action that sources can take regarding transactions.  
**Transaction Type** |  Enumeration, one of: |  The type of transaction to create. Availability depends on Mule version.  
**Primary Node Only** |  Whether this source should only be executed on the primary node when running in Cluster  
**Redelivery Policy** |  Redelivery Policy |  Defines a policy for processing the redelivery of the same message  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  A retry strategy in case of connectivity errors.  
**Ignore JMS replyTo header** |  True if no automatic response is needed for messages with destination header  
The body of the message  
The JMSType header of the message  
**Correlation ID** |  The JMSCorrelationID header of the message  
**Send Content-Type** |  True if the body type should be sent as a message property  
**Content-Type** |  The content type of the body  
**Send Encoding** |  True if the body outboundEncoding should be sent as a message property  
The outboundEncoding of the message’s body  
JMS Destination |  The JMSReplyTo header information of the Destination where this message should be replied to  
**User Properties** |  The custom user properties that should be set to this message  
**JMSX Properties** |  JMSX Properties |  The JMSX properties that should be set to this message  
**Persistent Delivery** |  Whether or not the delivery should be done with a persistent configuration  
The default JMSPriority value to use when sending the message  
**Time To Live** |  Defines the default time the message is in the broker before it expires and is discarded  
**Time To Live Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS
|  A retry strategy in case of connectivity errors.  
**Ignore JMS replyTo header** |  True if no automatic response is needed for messages with destination header  
The body of the message  
The JMSType header of the message  
**Correlation ID** |  The JMSCorrelationID header of the message  
**Send Content-Type** |  True if the body type should be sent as a message property  
**Content-Type** |  The content type of the body  
**Send Encoding** |  True if the body outboundEncoding should be sent as a message property  
The outboundEncoding of the message’s body  
JMS Destination |  The JMSReplyTo header information of the Destination where this message should be replied to  
**User Properties** |  The custom user properties that should be set to this message  
**JMSX Properties** |  JMSX Properties |  The JMSX properties that should be set to this message  
**Persistent Delivery** |  Whether or not the delivery should be done with a persistent configuration  
The default JMSPriority value to use when sending the message  
**Time To Live** |  Defines the default time the message is in the broker before it expires and is discarded  
**Time To Live Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit to use in the timeToLive configurations  
**Disable Message ID** |  If true, the message is flagged to avoid generating its MessageID  
**Disable Message Timestamp** |  If true, the message is flagged to avoid generating its sent Timestamp  
**Delivery Delay** |  Only used by JMS 2.0. Sets the delivery delay to be applied to postpone the message delivery  
**Delivery Delay Unit** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit to use in the deliveryDelay configurations  
**Send Correlation ID** |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  Options on whether to include an outbound correlation ID or not  
**Request Reply Pattern** |  Enumeration, one of:
  * CORRELATION_ID
  * MESSAGE_ID

|  Indicates which Request Reply Pattern to use. By default uses the Correlation ID of the incoming message to do the Reply-To. In case of configuring the message ID pattern, the ReplyTo will be performed using the message ID of the incoming message. If NONE is selected, not correlation ID will be configured automatically. |  CORRELATION_ID  
#### Output
Attributes Type |  JMS Attributes  
---|---  
### For Configurations
  * Default Configuration


## Types
### Expiration Policy
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Max Idle Time** |  A scalar time value for the maximum amount of time a dynamic configuration instance should be allowed to be idle before it’s considered eligible for expiration  
Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  A time unit that qualifies the maxIdleTime attribute  
### JMS Attributes
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Properties** |  JMS Message Properties |  Container element for all the properties present in a JMS Message.  
All the possible headers of a JMS message.  
The session Ack ID required to acknowledge the current message if one is available, otherwise, it is null.  
### JMS Message Properties
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
All the properties of the JMS message as a flattened map.  
**User Properties** |  The user-provided properties of the JMS message.  
**Jms Properties** |  JMS message broker and provider properties.  
**Jmsx Properties** |  JMSX Properties |  JMSX properties of the JMS message.  
### JMSX Properties
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Jmsx User ID** |  The user identity that sends the message.  
**Jmsx App ID** |  Identity of the application that sends the message.  
**Jmsx Delivery Count** |  The number of message delivery attempts.  
**Jmsx Group ID** |  The message group identity of the message.  
**Jmsx Group Seq** |  The sequence number of the message in the group.  
**Jmsx Producer TXID** |  Identifier of the transaction that produced the message.  
**Jmsx Consumer TXID** |  Identifier of the transaction that consumed the message.  
**Jmsx Rcv Timestamp** |  The time JMS delivered the message to the consumer.  
### Redelivery Policy
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Max Redelivery** |  Do not configure this parameter here, as it has no effect. See [ActiveMQConnectionFactoryConfiguration]  
**Use Secure Hash** |  Whether to use a secure hash algorithm to identify a redelivered message.  
**Message Digest Algorithm** |  The secure hashing algorithm to use. If not set, the default is SHA-256.  
**Id Expression** |  Defines one or more expressions to use to determine when a message has been redelivered. This property may only be set if useSecureHash is false.  
**Object Store** |  Object Store |  The object store where the redelivery counter for each message is stored.  
### Reconnect
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
How often to reconnect (in milliseconds)  
The number of reconnection attempts to make  
If false, the reconnection strategy runs in a separate, non-blocking thread  
### Reconnect Forever
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
How often in milliseconds to reconnect  
If false, the reconnection strategy runs in a separate, non-blocking thread  
### JMS Destination
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Destination** |  The name that identifies the destination where to send a reply to a message.  
**Destination Type** |  Enumeration, one of:
  * QUEUE
  * TOPIC

|  the type of this destination  
### JMSX Properties
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Jmsx User ID** |  The user identity that sends the message.  
**Jmsx App ID** |  Identity of the application that sends the message.  
**Jmsx Delivery Count** |  The number of message delivery attempts.  
**Jmsx Group ID** |  The message group identity of the message.  
**Jmsx Group Seq** |  The sequence number of the message in the group.  
**Jmsx Producer TXID** |  Identifier of the transaction that produced the message.  
**Jmsx Consumer TXID** |  Identifier of the transaction that consumed the message.  
**Jmsx Rcv Timestamp** |  The time JMS delivered the message to the consumer.  
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Enabled Protocols** |  A comma separated list of protocols enabled for this context.  
**Enabled Cipher Suites** |  A comma separated list of cipher suites enabled for this context.  
**Trust Store**  
**Revocation Check** | 
  * Standard Revocation Check
  * Custom OCSP Responder
|  the type of this destination  
### JMSX Properties
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Jmsx User ID** |  The user identity that sends the message.  
**Jmsx App ID** |  Identity of the application that sends the message.  
**Jmsx Delivery Count** |  The number of message delivery attempts.  
**Jmsx Group ID** |  The message group identity of the message.  
**Jmsx Group Seq** |  The sequence number of the message in the group.  
**Jmsx Producer TXID** |  Identifier of the transaction that produced the message.  
**Jmsx Consumer TXID** |  Identifier of the transaction that consumed the message.  
**Jmsx Rcv Timestamp** |  The time JMS delivered the message to the consumer.  
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Enabled Protocols** |  A comma separated list of protocols enabled for this context.  
**Enabled Cipher Suites** |  A comma separated list of cipher suites enabled for this context.  
**Trust Store**  
**Revocation Check** | 
  * Standard Revocation Check
  * Custom OCSP Responder

  
### Trust Store
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
The location (which will be resolved relative to the current classpath and file system, if possible) of the trust store.  
The password used to protect the trust store.  
The type of store used.  
The algorithm used by the trust store.  
If true, no certificate validations will be performed, rendering connections vulnerable to attacks. Use at your own risk.  
### Key Store
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
The location (which will be resolved relative to the current classpath and file system, if possible) of the key store.  
The type of store used.  
When the key store contains many private keys, this attribute indicates the alias of the key that should be used. If not defined, the first key in the file will be used by default.  
**Key Password** |  The password used to protect the private key.  
The password used to protect the key store.  
The algorithm used by the key store.  
### Standard Revocation Check
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Only End Entities** |  Only verify the last element of the certificate chain.  
**Prefer Crls** |  Try CRL instead of OCSP first.  
**No Fallback** |  Do not use the secondary checking method (the one not selected before).  
Avoid verification failure when the revocation server can not be reached or is busy.  
### Custom OCSP Responder
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
The URL of the OCSP responder.  
**Cert Alias** |  Alias of the signing certificate for the OCSP response (must be in the trust store), if present.  
### CRL File
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
The path to the CRL file.  
### Reconnection
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Fails Deployment** |  When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  The reconnection strategy to use.  
### Active MQ Connection Factory Configuration
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Broker Url** |  The address of the broker to connect |  vm://localhost?broker.persistent=false&broker.useJmx=false  
ConnectionFactory should support XA  
**Initial Redelivery Delay** |  Used to configure the RedeliveryPolicy#getInitialRedeliveryDelay(). This feature is not available in an XA context.  
**Redelivery Delay** |  Used to configure the RedeliveryPolicy#getRedeliveryDelay(). This feature is not available in an XA context.  
**Max Redelivery** |  Used to configure the RedeliveryPolicy#getMaximumRedeliveries(). Sets the maximum number of times a message will be redelivered before it is sent to the Dead Letter Queue. No redelivery is represented with 0, while -1 means infinite re deliveries accepted.  
**Trusted Packages** |  Array of String |  Allowed packages of classes to send and receive. Starting with versions 5.12.2 and 5.13.0, ActiveMQ requires you to explicitly allow packages that can be exchanged using ObjectMessages.  
**Trust All Packages** |  Indicates if a class from any package can be sent and received. Enabling this parameter is unsafe because a malicious payload can exploit the host system. Starting with versions 5.12.2 and 5.13.0, ActiveMQ requires you to explicitly allow packages that can be exchanged using ObjectMessages.  
### Topic Consumer
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Indicates if messages are cached when the client is not connected.  
Indicates if the subscription is shared among consumers.  
Inhibits the delivery of messages published by its own connection.  
**Subscription Name** |  Name of the subscription.  
### Default Caching
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Session Cache Size** |  Size of the session cache.  
**Cache Producers** |  Indicates whether or not to cache the producer.  
**Cache Consumers** |  Indicates whether or not to cache the consumer.  
### JNDI Connection Factory
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Connection Factory Jndi Name** |  Name of the ConnectionFactory to be discovered using Jndi and used as a delegate of ConnectionFactory  
**Lookup Destination** |  Enumeration, one of:
  * NEVER
  * ALWAYS
  * TRY_ALWAYS

|  The Destinations  
**Name Resolver Provider** |  JNDI Name Resolver Provider |  Provider for the JndiNameResolver  
### JNDI Name Resolver Provider
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Custom JNDI Name Resolver** |  One of:
  * Simple JNDI Name Resolver
  * Cached JNDI Name Resolver

|  Reference to a custom JndiNameResolver implementation  
**Name Resolver Builder** |  JNDI Name Resolver Properties |  Properties required to build a SimpleJndiNameResolver  
### JNDI Name Resolver Properties
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Jndi Initial Context Factory** |  The fully qualified name of the factory class that creates the initial context.  
**Jndi Provider Url** |  The JNDI service provider URL.  
**Provider Properties** |  Properties to pass to the JNDI Name Resolver Context  
### Simple JNDI Name Resolver
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Context Factory** |  The fully qualified name of the factory class that creates the initial context.  
**Jndi Initial Factory** |  The name of the environment property for specifying the initial context factory to use.  
**Jndi Provider Properties** |  Properties to pass to the JNDI Name Resolver Context.  
**Jndi Provider Url** |  URL of the JNDI provider.  
### Cached JNDI Name Resolver
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Context Factory** |  The fully qualified class name of the factory class that creates the initial context.  
**Jndi Initial Factory** |  The name of the environment property for specifying the initial context factory to use.  
**Jndi Provider Properties** |  Properties to pass to the JNDI Name Resolver Context.  
**Jndi Provider Url** |  URL of the JNDI provider.  
### System Properties
You can configure the following system properties for the connector:
Property | Description  
---|---  
**`mule.jms.generic.additionalCertificateFileName`**|  JKS file name that contains SSL certificates to add.  
**`mule.jms.generic.additionalCertificatePassword`**|  Truststore password that you set for the `mule.jms.generic.additionalCertificatePassword` property.  
**`mule.jms.operation.artemis.dispose.delay`**|  Sets a delay during the undeployment stage to prevent thread leaks and allow Artemis time to close the channels it opened with the JMS broker. Set this property when Artemis is the chosen JMS driver.  
Note that when you configure these system properties, do not configure the **Caching strategy** field to the **Default caching (Default)** option. Configure the field to **No caching**.
## See Also
MuleSoft Help Center