# Split file contents into JMS messages

Given a file to be sent as a JMS message, the **File-to-Message (F2M)** process requires the following steps:

1. Verify the [Data Mover system requirements](/data-one-installation-manager/system-requirements/data-mover-system-requirements/data-mover-system-requirements.md).&#x20;
2. Configure Data Mover to use the required JMS provider, as described in the [How to... configure JMS client connection support via DOIM](/data-mover-1.21/how-to.../...-configure-jms-client-connection-support-via-doim.md) page.&#x20;
3. Configure the [JMS Client Connection](/data-mover-1.21/transfer-protocols-and-connectors/client-connections/client-connection-jms.md) in Data Mover to connect to the JMS provider and send each JMS message to the JMS destination.
4. Configure the [Message Processing Rule](/data-mover-1.21/transfer-protocols-and-connectors/jms-connector/message-processing-rules.md#splitting-file-content-into-jms-messages) to define the splitting strategy to create one or more messages starting from a single message.
5. Configure the Output Contract to send JMS messages with two new JMS-dedicated output system workflow templates that leverage the new [Remote SpJMSPush](/data-mover-1.21/workflow-templates/service-tasks/triggerable-service-tasks.md#remote-spjmspush) service task to split, map metadata and send JMS messages:
   1. [system\_newfile\_JMS-push](https://docs.primeur.com/data-mover-1.21/transfer-protocols-and-connectors/jms-connector/pages/JanyWTlsU58FTA4llglA#id-4.-push-new-file-as-jms-message) – New File – triggered
   2. [system\_vBind\_JMS-push](https://docs.primeur.com/data-mover-1.21/transfer-protocols-and-connectors/jms-connector/pages/JanyWTlsU58FTA4llglA#id-3.-push-vbox-bind-file-as-jms-message) – Virtual Box Bind - triggered


---

# 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/split-file-contents-into-jms-messages.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.
