Jump to content

Middleware4j

From Commander4j
Revision as of 21:47, 9 November 2026 by Dgarratt (talk | contribs) (Updated by push_wiki.py)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Middleware4j converts files from one format to another and delivers the result where it is needed. It was developed as a companion to Commander4j, for example to link it to an ERP system, but it has no dependency on Commander4j and can be used on its own for any file based integration.

It watches folders for incoming files, converts each one, and sends the result to one or more destinations, running continuously in the background as a service.

How it works

Each conversion is described by a map, which has three parts:

 INPUT CONNECTOR  --XML-->  MAP (XSLT)  --XML-->  OUTPUT CONNECTOR(S)
 native to XML              XML to XML            XML to native
  1. An input connector reads the incoming file and converts it into XML.
  2. The map, an XSLT stylesheet, rearranges that XML.
  3. One or more output connectors convert the result into the target format and deliver it.

A map has one input format but can have several outputs. Overview Middleware4j explains this in more detail.

Getting Started

Overview What Middleware4j does and how it works
Downloads Download the latest release
Installation How to install, and how to run as a Windows service
Upgrade Moving to a newer version
Example Screen The desktop status window

Building Maps

Creating a Map Step by step: building a new map, and how to see what each stage produced
Maps Reference for every setting in config.xml, output file names, conditions and error handling
Connectors The XML each input connector produces and each output connector expects
XSLT Extension Functions The extra functions available to stylesheets for padding, trimming and dates
Example Configuration One complete sample map explained line by line

Connector Reference

ASCII Fixed column text files, input and output
CSV Delimited text files, input and output
XML XML documents, input and output
IDOC SAP IDOC flat files, input
EXCEL Excel spreadsheets, input and output
SOCKET Send data to a device over TCP/IP, output
MQTT Publish a message to an MQTT broker, output
RAW Copy or move files without converting them
EMAIL Send files as email attachments, and the email settings for error and status messages
PDF_PRINT Print PDF files on a named printer