How to avoid an incomplete file transfer by the TIBCO ActiveMatrix Adapter for Files (Unix/Win) publication service?

How to avoid an incomplete file transfer by the TIBCO ActiveMatrix Adapter for Files (Unix/Win) publication service?

book

Article ID: KB0092265

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows -
Not Applicable -

Description

Description:

Description
--------------
When a TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) publication service is configured with a ‘timer’ based polling mechanism, it will try to read file ‘A’ to transfer while another application is still in the process of writing to the file. This is when the partial file transfer can occur, causing the FA Subscription service receiving the corrupted file and possible I/O errors on the FA publication side.

Issue/Introduction

How to avoid an incomplete file transfer by the TIBCO ActiveMatrix Adapter for Files (Unix/Win) publication service?

Resolution

Resolution
-------------

1). Use ‘By trigger’ as the recognition method-

TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) publication service will read the input file only when its trigger file is created. A trigger file can be created by another application that is creating the input file or any external mechanism such as a TIBCO BusinessWorks (BW)  process or a UNIX script to indicate the input file is ready for transfer.


2). Use Message based as the polling method rather than ‘timer’.

When the file is ready in the input directory, the other application can publish a message on a specific polling subject configured in the project.

  • If the FA publication service is configured for the ‘TIBCO Rendezvous (RV)’ transport, then you can use the polling method as ‘Rendezvous message’.
  • If the FA publication service is configured for the ‘JMS’ transport, then you can use the polling method as ‘JMS Topic’.
Attachments
------------------
1). Filename ByTriggerSample.zip. Demonstrates a BW process creating the input file and the trigger file after the input file is ready. The FA publisher then transfers the file to the FA subscriber.

2). Filename ByJMSPolling.zip. Demonstrates a BW process creating the input file and sending a JMS trigger message. The FA publisher then transfers the file to the FA subscriber.

Additional Information

See TIBCO Adapter for Files User Guide->Chap 4->Publication Service Options, for more details.

Attachments

How to avoid an incomplete file transfer by the TIBCO ActiveMatrix Adapter for Files (Unix/Win) publication service? get_app
How to avoid an incomplete file transfer by the TIBCO ActiveMatrix Adapter for Files (Unix/Win) publication service? get_app