# JMS Connector

The **JMS Connector** feature can be used to integrate endpoints that produce or consume data in the form of JMS messages.&#x20;

Data Mover can receive JMS messages and apply aggregation policies to obtain files and send files in the form of JMS messages after applying splitting policies.

The **File-to-Message (F2M)** and **Message-to-File (M2F)** processes handle the transformation of files into Java Message Service (JMS) messages and vice versa.

The **File-to-Message process** [splits file contents into several JMS messages](/data-mover-1.21/transfer-protocols-and-connectors/jms-connector/split-file-contents-into-jms-messages.md). A configurable splitting strategy is applied and optionally metadata can be mapped. This ensures that each data chunk can be sent effectively while retaining relevant contextual information. With the integration of the Output Contract mechanism from Data Mover, messages can be sent to specific JMS destinations via customized service tasks and JMS connection protocol.

<figure><img src="/files/WYpQBoNdJwaMeFqcAkYF" alt="" width="424"><figcaption></figcaption></figure>

Conversely, the **Message-to-File process** [aggregates incoming JMS messages into structured files](/data-mover-1.21/transfer-protocols-and-connectors/jms-connector/aggregate-jms-messages-into-files.md). Data Mover connects to a JMS provider and enables the collection and combination of messages with an Input Contract mechanism, applying specific aggregation strategies. These strategies provide flexibility in how messages are aggregated and allow for precise control over when new files are created based on various conditions.

<figure><img src="/files/9e2REvlcRGHCdllt5Rwk" alt="" width="428"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-mover-1.21/transfer-protocols-and-connectors/jms-connector.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
