Databases Reference
In-Depth Information
When producing an output file, we can either keep appending to a single file by
selecting the Append to existing file checkbox, which will keep growing without
limit, or we can create new files, which will be dependent on attributes of the data
being written. This is the normal way of working for non-XML files, and a new
output file will be generated when one or more records are written to the adapter.
The criteria for deciding to write to a new file are as follows:
Number of Messages Equals : This criterion forces the file to be written when
the given number of messages is reached. This can be thought of as batching
the output so that we reduce the number of files created.
Elapsed Time Exceeds : This criterion puts a time limit on how long the
adapter will keep the file open. This places an upper time limit on creating an
output file.
File Size Exceeds : This criterion allows us to limit the file sizes. As soon as a
message causes the file to exceed the given size, no further message will be
appended to this file.
These criteria can all be applied together, and as soon as one of them is satisfied, a
new file will be created.
Writing XML files,
When writing XML files, care should be taken to have only a single
message per file, or else there will be multiple XML root elements in
the document that will make it an invalid XML document.
 
Search WWH ::




Custom Search