Jump to content

Middleware4j: Difference between revisions

From Commander4j
Updated by push_wiki.py
Updated by push_wiki.py
 
Line 1: Line 1:
'''Middleware4j''' is a file-based message transformation and routing engine developed as a companion to [[Commander4j]]. It has no dependencies on Commander4j and can be used independently for any system integration requirement.
'''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.


Its primary purpose is to link systems that use incompatible data formats. It monitors directories for incoming files, transforms them using configurable XSLT stylesheets, and delivers the results to one or more output destinations in the required format — running continuously in the background as a service.
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.


For a full explanation of how the application works, see [[Overview_Middleware4j]].
== How it works ==
 
Each conversion is described by a '''[[Maps|map]]''', which has three parts:
 
<pre>
INPUT CONNECTOR  --XML-->  MAP (XSLT)  --XML-->  OUTPUT CONNECTOR(S)
native to XML              XML to XML            XML to native
</pre>
 
# An '''input connector''' reads the incoming file and converts it into XML.
# The '''map''', an XSLT stylesheet, rearranges that XML.
# 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 ==
== Getting Started ==
Line 9: Line 22:
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
| [[Overview_Middleware4j]] || What Middleware4j does and how it works
| style="width:30%" | [[Overview Middleware4j|Overview]] || What Middleware4j does and how it works
|-
|-
| [[Downloads]] || Download the latest release
| [[Downloads]] || Download the latest release
|-
|-
| [[Installation_Middleware4j]] || How to install and deploy as a Windows service
| [[Installation Middleware4j|Installation]] || How to install, and how to run as a Windows service
|-
| [[Upgrade Middleware4j|Upgrade]] || Moving to a newer version
|-
| [[Middleware Example Screen|Example Screen]] || The desktop status window
|}
|}


== User Guide ==
== Building Maps ==


{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
| [[Maps]] || Configuring transformation pipelines (the core concept)
| style="width:30%" | [[Creating a Map]] || Step by step: building a new map, and how to see what each stage produced
|-
|-
| [[Connectors]] || Available input and output connector types
| [[Maps]] || Reference for every setting in <code>config.xml</code>, output file names, conditions and error handling
|-
|-
| [[Middleware4j_Example_Configuration]] || Complete worked configuration example
| [[Connectors]] || The XML each input connector produces and each output connector expects
|-
|-
| [[EMAIL]] || Email connector and SMTP configuration
| [[XSLT Extension Functions]] || The extra functions available to stylesheets for padding, trimming and dates
|-
| [[Middleware4j Example Configuration|Example Configuration]] || One complete sample map explained line by line
|}
|}


Line 33: Line 52:
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
| [[ASCII]] || Fixed-column flat file input and output
| style="width:30%" | [[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
|-
|-
| [[CSV]] || Delimiter-separated file input and output
| [[EXCEL]] || Excel spreadsheets, input and output
|-
|-
| [[XML]] || XML document input and output with XSLT transformation
| [[SOCKET]] || Send data to a device over TCP/IP, output
|-
|-
| [[RAW]] || Copy or move files without transformation
| [[MQTT]] || Publish a message to an MQTT broker, output
|-
|-
| [[EMAIL]] || Send files as email attachments or receive via email
| [[RAW]] || Copy or move files without converting them
|-
|-
| [[SOCKET]] || Transmit data to devices over TCP/IP
| [[EMAIL]] || Send files as email attachments, and the email settings for error and status messages
|-
|-
| [[PDF_PRINT]] || Automatically print PDF files to a named printer queue
| [[PDF PRINT|PDF_PRINT]] || Print PDF files on a named printer
|}
|}


[[Category:Middleware4j]]
[[Category:Middleware4j]]

Latest revision as of 21:47, 9 November 2026

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