Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Iway 5.5 FileListener problem

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Iway 5.5 FileListener problem
 Login/Join
 
Member
posted
Hi,

Anybody around that can assist me fixing a problem with a FileListener configuration.

In this case we're polling a folder for files on a networkshare. Sometimes these files are 5 or 6 Mb. The issue now is that these files are being picked up by the Iway Adapter before they are completely written to the Active Directory networkshare, resulting in useless files in our system containing only part of the message, and zero-characters at the end (where the data wasn't written yet)

I was wondering if I could configure the Iway listener (that uses the XDCopyAgent) in such a way that it won't start copying the file until it's no longer in use by the process that is writing it.

Any help with this issue would be greatly appreciated

Thanks,
Paul
 
Posts: 2 | Registered: June 05, 2008Report This Post
Gold member
posted Hide Post
Paul,
I'd recommend you change the process that is creating the file to create a .tmp, and when it has finished transferring the data, get it to rename that file to .txt (or whatever extansion you're looking for). Make your listener listen for the .txt file.


iWay 5.5 SMSP1 and 6.0.1 on Intel/Linux
 
Posts: 59 | Location: Birmingham, Blighty | Registered: October 30, 2007Report This Post
Member
posted Hide Post
as already mentioned the source application should write a tmp file first and then change the extension of the file when it is completed.

However, depending on what is inside the document you can try to work with the File Read agent with the file listener to see if this helps resolves your issue.
 
Posts: 4 | Location: London | Registered: November 01, 2007Report This Post
Member
posted Hide Post
Thelistener is configured with this XML:

 
   <listener protocol="file">EDINE_unique
      <active>true</active>
      <destination hasPattern="true">d:\ednketen\edine\in\email\queue\*#.edn</destination>
      <timeout>4.0</timeout>
      <retry>600</retry>
      <sort>false</sort>
      <precedence>1</precedence>
      <file>\\sadm01da005\edine\Production\Gen\Channel\2eTimesConversion\</file>
      <localtrans>false</localtrans>
      <maxcount>1</maxcount>
      <encoding>Cp1252</encoding>
      <errpremit>false</errpremit>
      <autoReply>true</autoReply>
      <suffixin>*</suffixin>
      <nounzip>false</nounzip>
      <flat>true</flat>
      <optimize>performance</optimize>
      <scansubs>false</scansubs>
      <count>1</count>
      <duration>86400</duration>
      <agent class="com.ibi.agents.XDCopyAgent" name="iwCOPY_1">iwCOPY
         <active>true</active>
         <parm name="delay">1</parm>
      </agent>
      <eda:control>
         <eda:errorto protocol="as1" comment="" name="Monitoring">address@company.com
            <eda:param name="replysubject">iWay PRODUCTION: ERROR in processing confirmation message</eda:param>
            <eda:param name="smtphost">exch005</eda:param>
            <eda:param name="contenttype">application/XML</eda:param>
            <eda:param name="packaging">regular</eda:param>
            <eda:param name="compression">false</eda:param>
            <eda:param name="receipt">none</eda:param>
            <eda:param name="digestalg">sha1</eda:param>
            <eda:param name="encryptalg">des-ede3</eda:param>
            <eda:param name="cc">address@company.com</eda:param>
         </eda:errorto>
         <eda:errorto protocol="file" comment="" name="toERROR">d:\ednchain\edine\error\
            <eda:param name="createdir">false</eda:param>
         </eda:errorto>
      </eda:control>
      <registers/>
   </listener>
 
 
Posts: 2 | Registered: June 05, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Iway 5.5 FileListener problem

Copyright © 1996-2020 Information Builders