---
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][]) <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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][].

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| 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 |

## <i class="fal fa-gears" aria-hidden="true"></i> How It Works

When a user picks ActiveMQ as the transport in **Repair and Resubmit**, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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][].

## <i class="fal fa-code" aria-hidden="true"></i> 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
  }
]
```

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-tags" aria-hidden="true"></i> [Context Options][] - The `ExtendedProperties/1.0#…` keys you can log  
* <i class="fal fa-users" aria-hidden="true"></i> [Permission Set for Log Views][] - Grant Allow Resend and Allow Repair  
* <i class="fal fa-sliders" aria-hidden="true"></i> [Manage System Parameters][] - Change the value  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-share-square" aria-hidden="true"></i> [ResendWebhookSettings][] - Webhook targets for Resend and Repair  
* <i class="fal fa-repeat" aria-hidden="true"></i> [AllowResubmit][] - Master switch for Resend and Repair  
* <i class="fal fa-magic" aria-hidden="true"></i> [AllowRepair][] - Switch for Repair  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [What is a Log View?][Log View Repair]  
* <i class="fal fa-arrow-rotate-left" aria-hidden="true"></i> [Resend a Log Event][Resend Log Event] - What users see in a Log View  
* <i class="fal fa-globe" aria-hidden="true"></i> [Web Client][]  
* <i class="fal fa-cog" aria-hidden="true"></i> [System Parameters][]  

[AllowRepair]:https://docs.nodinite.com/administration/settings/system-parameters/allowrepair/
[AllowResubmit]:https://docs.nodinite.com/administration/settings/system-parameters/allowresubmit/
[Context Options]:https://docs.nodinite.com/core-services/log-event/features/context-options/
[Context Options - Filename]:https://docs.nodinite.com/core-services/log-event/features/context-options/#filename
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log View Repair]:https://docs.nodinite.com/administration/log-management/log-views/features/view-log-event-details-and-repair/#fa-magic-repair
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Permission Set for Log Views]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-log-views/
[Resend Log Event]:https://docs.nodinite.com/getting-started/log/open-a-log-event-and-read-its-message/#resend
[ResendWebhookSettings]:https://docs.nodinite.com/administration/settings/system-parameters/resendwebhooksettings/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/