---
title: ResubmitContextValuesForActiveMQ System Parameter – Context Properties for ActiveMQ Resubmit
description: ResubmitContextValuesForActiveMQ selects which context properties of a Log Event Nodinite attaches as message properties when users repair and resubmit a message to an ActiveMQ queue. A JSON array of MessageTypeIds, KeyRegEx, and KeyGroup rules.
---

# ResubmitContextValuesForActiveMQ - System Parameter

**ResubmitContextValuesForActiveMQ** selects which context properties of a logged message ([Log Event][]) :Nodinite: attaches as message properties when a user repairs and resubmits the message to an ActiveMQ queue from a [Log View][Log Views] in the [Web Client][].

## :fa-table: At a Glance {#at-a-glance}

| Property | Value |
| --- | --- |
| Key | `ResubmitContextValuesForActiveMQ` |
| Data type | json (array) |
| Default | Empty (no context properties attached) |
| Read by | [Web Client][] |
| Takes effect | Within about 15 seconds; no restart needed |
| Status | ✅ Active |
| Since | Nodinite 4.3.0.36 |

## :fa-gears: How It Works

When a user picks ActiveMQ as the transport in **Repair and Resubmit**, :Nodinite: presets the dialog from the Log Event:

* **Broker and queue** come from the Endpoint URI of the Log Event's [Endpoint][Endpoints], in this form:

  ```text
  Broker=failover:(tcp://servername1:61616);queue=resendqueuename
  ```

  With several brokers, list them inside `failover:( … )`:

  ```text
  Broker=failover:(tcp://servername1:61616,tcp://servername2:61616);queue=resendqueuename
  ```

* **File name**: when the Log Event carries a proposed file name in the [Filename context option][Context Options - Filename], the Web Client presets it for download and resubmit from a file.
* **Message properties**: the context properties whose keys match a rule in this parameter are added to the resubmitted message. Your logging code must add those context properties to the Log Event first.

Repair needs [AllowResubmit][] and [AllowRepair][] set to `true` and the **Allow Resend** and **Allow Repair** permissions, see [Permission Set for Log Views][].

## :fa-code: Value Format

A JSON array of rules. The format is the same as `ExtractContextValues` in [ResendWebhookSettings][].

| Property | Type | Meaning |
| --- | --- | --- |
| `MessageTypeIds` | array of integers or `null` | The [Message Types][] the rule applies to. `[]` or `null` applies it to all Message Types. |
| `KeyRegEx` | string | Regular expression matched against the context property keys. Escape backslashes for JSON (`\\#`). |
| `KeyGroup` | integer | Which regex group becomes the property name on the message: `0` uses the whole key, `1` the first group. |

### Example: All Message Types

Attach every context property whose key starts with `ActiveMQ#`, such as `ActiveMQ#Company` or `ActiveMQ#InvoiceNo`. `KeyGroup` `1` picks the part matched by `(.+)`, so the message gets the properties `Company` and `InvoiceNo`.

```json
[
  {
    "MessageTypeIds": [],
    "KeyRegEx": "ActiveMQ\\#(.+)",
    "KeyGroup": 1
  }
]
```

### Example: Selected Message Types

The first rule applies only to the Message Types with IDs `1`, `42`, and `1337`; the second adds the `Filename` context option for all Message Types.

```json
[
  {
    "MessageTypeIds": [1, 42, 1337],
    "KeyRegEx": "ActiveMQ\\#(.+)",
    "KeyGroup": 1
  },
  {
    "MessageTypeIds": [],
    "KeyRegEx": "ExtendedProperties\\/1\\.0\\#(Filename)",
    "KeyGroup": 1
  }
]
```

## :fa-hand-point-right: Next Steps

* :fa-tags: [Context Options][] - The `ExtendedProperties/1.0#…` keys you can log  
* :fa-users: [Permission Set for Log Views][] - Grant Allow Resend and Allow Repair  
* :fa-sliders: [Manage System Parameters][] - Change the value  

## :fa-link-horizontal: Related Topics

* :fa-share-square: [ResendWebhookSettings][] - Webhook targets for Resend and Repair  
* :fa-repeat: [AllowResubmit][] - Master switch for Resend and Repair  
* :fa-magic: [AllowRepair][] - Switch for Repair  
* :fa-hard-drive: [What is a Log View?][Log View Repair]  
* :fa-arrow-rotate-left: [Resend a Log Event][Resend Log Event] - What users see in a Log View  
* :fa-globe: [Web Client][]  
* :fa-cog: [System Parameters][]  

[AllowRepair]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AllowRepair.md
[AllowResubmit]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AllowResubmit.md
[Context Options]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md
[Context Options - Filename]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md#filename
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log View Repair]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/View%20Log%20Event%20Details%20and%20Repair.md#fa-magic-repair
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Manage System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Manage%20System%20Parameters.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Permission Set for Log Views]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20Log%20Views.md
[Resend Log Event]:{ndr}/Getting%20Started/2.%20Log/Open%20a%20Log%20Event%20and%20read%20its%20message.md#resend
[ResendWebhookSettings]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/ResendWebhookSettings.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md