Data path (global.datapath)
The data path is the root directory for persistent application data managed by phase4’s internal managers.
| Property | Default | Description |
|---|---|---|
global.datapath | phase4-data | Root directory for persistent data. Relative paths are resolved against the application working directory. |
application.properties
phase4.manager.inmemory=false, the following are stored under global.datapath:
- PModes — as XML files, one file per PMode.
- Duplicate detection state — incoming message IDs retained for the configured disposal window.
In-memory vs. file-based managers (phase4.manager.inmemory)
| Property | Default | Description |
|---|---|---|
phase4.manager.inmemory | true | When true, all managers operate in memory only. When false, data is persisted to global.datapath. |
For most production deployments,
phase4.manager.inmemory=true is the right choice. PModes are typically constructed programmatically at startup and do not need to survive restarts. Set it to false only if you use the web-based PMode management UI or require runtime PMode persistence.Duplicate detection window
phase4 records the Message ID of every accepted incoming message for a configurable time window. If the same Message ID arrives again within the window, the message is rejected as a duplicate.| Property | Type | Default | Description |
|---|---|---|---|
phase4.incoming.duplicatedisposal.minutes | long | 10 | Minutes that incoming message IDs are retained. |
application.properties
phase4.manager.inmemory=true, the duplicate detection state is also kept in memory and resets on restart.
Dump path (phase4.dump.path)
Message dumps are stored separately from the main data path, under phase4.dump.path.
| Property | Default | Description |
|---|---|---|
phase4.dump.path | phase4-dumps | Root directory for message dump files. Relative paths are resolved against the application working directory. |
application.properties
AS4DumpManager. The built-in file-based dumpers write files under this path.
What is stored in the dump path
Dump files are organized into subdirectories by direction:| Subdirectory | Contents |
|---|---|
incoming/ | Files written by AS4IncomingDumperFileBased — one file per received AS4 message. |
outgoing/ | Files written by AS4OutgoingDumperFileBased — one file per sent AS4 message, per attempt. |
Enabling message dumps
Dumping is off by default. Register a dumper at application startup:Full storage configuration example
application.properties