ResubmitContextValuesForActiveMQ - System Parameter
Nodinite streamlines repair and resubmit (re-send) operations to ActiveMQ by leveraging properties on the logged message Log Event.
- Endpoint URI
- Context properties
- filename Context option
- ResubmitContextValuesForActiveMQ - JSON structure as described in this guide
Endpoint URI
Nodinite uses the Endpoint URI from the Log Event to preset the target for resubmitting messages to ActiveMQ.
Broker=failover:(tcp://servername1:61616);queue=resendqueuename
Single server example.
Broker=failover:(tcp://servername1:61616,tcp://servername2:61616);queue=resendqueuename
Multiple server example.
File Name
If you provide a proposed file name with the logged message, then when downloading or re-submitting using a file, Nodinite will preset this value in the Web Client.
ResubmitContextValuesForActiveMQ System Parameter
The System Parameter ResubmitContextValuesForActiveMQ controls the resubmit operation of logged messages.
When resending messages to ActiveMQ and you want to control which properties to attach, you must add coded context properties to the message and provide configuration for Nodinite using the ResubmitContextValuesForActiveMQ System Parameter.
Nodinite uses the Group Match as the Key for this value, which must be entered in JSON format as shown in the following example:
[{"MessageTypeIds":[],"KeyRegEx":"","KeyGroup":1}]
Info
If MessageTypeIds = [] or null, this setting is applied to all Message Types.
Example 1: JSON Object applied to ALL Message Types
In this example, all properties prefixed with ActiveMQ# are included as properties on the resubmitted message (applies to all Message Types).
Prefix - ActiveMQ.
Examples:
ActiveMQ#Company
ActiveMQ#InvoiceNo
...
For all Message Types = []
Check for Context Properties prefixed with ActiveMQ# and use any value found using RegEx pattern (.+)
Select key group 1 to pick the part in (.+)
Group 0 will take the whole key.
[{
"MessageTypeIds": [],
"KeyRegEx": "ActiveMQ\\#(.+)",
"KeyGroup": 1
}]
Example 2: JSON Object applied on selected Message Types
[{
"MessageTypeIds": [1,42,1337],
"KeyRegEx": "ActiveMQ\\#(.+)",
"KeyGroup": 1
},
{
"MessageTypeIds": [],
"KeyRegEx": "ExtendedProperties\\/1\\.0\\#(Filename)",
"KeyGroup": 1
}]
json
JSON text string with valid values
This feature comes with Nodinite version 4.3.0.36
Frequently asked questions
Additional solutions to common problems and the Nodinite System Parameters FAQ exist in the Troubleshooting user guide.
How do I change the value?
Changing a value for the pre-defined System Parameters is described in the generic 'How do I change the System Parameters' article.
Next Step
Context Options
Administration