need to process same file from two application using file adapters

Home Page Forums BizTalk 2004 – BizTalk 2010 need to process same file from two application using file adapters

Viewing 1 reply thread
  • Author
    Posts
    • #23139

      Hi ,

      We have one BizTalk application in production which uses a File receive adapter. It picks files from C:\File\In, these files come from a legacy application (we can’t change this). We have to write a new application which needs to consume the same files in C:\File\In using file adapter.

      But the receive File Adapter deletes the file from the file system or network share when it successfully processes and the BizTalk environment does not allow to configure the same receive location for the next Receive File adapter

      Do BizTalk have any alternative for this? It says about ‘Rename file reading” properties. I tried this but it too does not allow to create second receive adapter for the same location.

      Could you please let me know any solution for this?

      Thank you & Best regards,

      Nandika

       

       

    • #23143

      You’re looking at this the wrong way. You don’t want to have two biztalk apps trying to read the same file from the same location. Instead, just have the two applications bound (directly or indirectly) to the same receive port so that the BizTalk MessageBox routes the incoming file automatically to both of them. Example: You’d have two orchestrations whose logical receive ports are bound to the same file receive location you have.

      • #23161

        Thanks for your reply.  But what will happene one application is stopped & one is run . The stoped one is going to missed input files because file receive adapter deletes files from the receive location once it processed.

        Best regards,

        Nandika

         

         

        • #23168

          The Biztalk MessageBox uses a publish/subscribe pattern.
          A receive port publishes the received message and any number of applications can subscribe to that message. Each application (orchestration or send port) that subscribes to the message will receive a copy of that message i.e. the message will remain in the MessageBox ( a SQL Server database) until it has been consumed by each subscriber.

          As Tomas stated previously, you need one receive port with one receive location to pick up the file, and two or more orchestrations or send ports to process the received message. As long as the subscribers are Enlisted (i.e. have an active subscription), the message will be maintained in the MessageBox until they consume it.
          You can bind two orchestrations to the same receive port or you can use direct binding. If you are using send ports you can set up two send ports with the same filter criteria so they both process the received message.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.