Products | Versions |
---|---|
TIBCO KTP | - |
Not Applicable | - |
Resolution:
Description:
============
For a KTP application that use Filechannel, it is possible to configure this channel to do file aggregation.
Environment:
===========
P.KTP, all version
P.FILECHANNEL, all version
Resolution:
==========
Output files aggregation using Filechannel KTP component could be done using a special configuration on the "WriterConfiguration" section. This configuration must not contain "%filename" pattern in the "fileNameTemplate" nor in the "renameTemplate" parameters. Instead, these two parameters have to contain dynamic pattern as "%count" in order to do not overwrite the current working file. Also, a specific rollover must be enabled and configured.
Example:
========
On this "WriterConfiguration" example, the "%count" pattern is used for aggregated output files incrementation and the rollover is done by size.
configure filechannel
{
WriterConfiguration
{
name = "outputwriter1";
serviceName = "deadlockreprod1";
description = "KTS File Channel Example Writer";
startWriterAutomatically = Disabled;
fileNameTemplate = "../output/bsc-%count.complete";
renameOnClose = Disabled;
renameTemplate = "../output/bsc-%count.complete";
loggingMode = Synchronous;
asyncBuffering = EnableStateNull;
asyncBufferingFlushInterval = 0;
asyncTransactionality = Disabled;
rolloverBySize =Enabled;
rolloverSize = 10000;
rolloverByNumRecords = Disabled;
rolloverNumRecords = 0;
rolloverByInterval = Disabled;
rolloverInterval = 0;
rolloverBySchedule = Disabled;
scheduleType = Periodic;
fireExpiredTaskOnRestart = Disable;
minute = "*";
hour = "*";
dayOfWeek = "*";
dayOfMonth = "*";
month = "*";
year = "-1";
fileCreateMode = "0666";
directoryCreateMode = "0755";
fileSyncMode = Unsynchronized;
fileOpenMode = Append;
transform = "myTransform";
};
};