Copyright © TIBCO Software Inc. All rights reserved
Copyright © TIBCO Software Inc. All rights reserved


Chapter 4 Using the Adapter : Block Transfer Mode

Block Transfer Mode
In some situations, you might want to publish a file without regard to its file structure. To do this, specify that the file is to be published, or subscribed to, in block mode. When a file is processed in block mode, the data from the file is read without regard to the field or record structure, and the data is published as a block.
Configuration
To enable block mode, specify the following parameters in the FileType section, FILE_OPTIONS element:
blockTransferMode — When enabled, the file is published in blocks of data without further processing of the data (you must also specify the endPublishSubject parameter for FilePublisher and the generateFileSubjectName parameter for FileSubscriber.
blockTransferSize – Specifies the block size, in bytes, that the adapter uses to publish the file. The default value is 65536. This parameter is not used for FileSubscriber.
A file that is published in block transfer mode must be subscribed to in block transfer mode. Data received from a file that is published in block transfer mode does not have record or field characteristics. When the data is received by FileSubscriber, the blocks are written to a progress file. FileSubscriber generates a final output file only when it receives a message with the subject specified in genFileSubjectName. The FILE_LINE element is not required, and is ignored.
FileSubscriber receives a message with a subject that FileSubscriber has defined with the generateFileSubjectName parameter. When block transfer mode is enabled, the following tags are ignored for that file type in FileSubscriber:
• appendDateTime
• autoGenerateFile
• generateFileOnNumberOfMessages
When a file is published in block transfer mode, FilePublisher reads the file in blocks, as specified with the blockTransferSize, without additional processing of the data. The MESSAGE_FIELD element is not required, and is ignored.

Copyright © TIBCO Software Inc. All rights reserved
Copyright © TIBCO Software Inc. All rights reserved