Home Page › Forums › BizTalk 2004 – BizTalk 2010 › how to avoid multiple instances of one application ?
- This topic has 5 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
June 23, 2009 at 2:06 AM #22711
Hi,
I have an application, which takes a flatfile, work on it and put the records into a sql database.
Most of the work is done by a .NET assembly (Class) implemented in the BizTalk-Application.If there are more than one flatfile in the receiving directory, the application is fired for each flatfile at the same time. As I want to write a protocol in a textfile, I hope, there is a way to tell the application, that it has to work on one flatfile after the other. (The protocol looks very funny, of course of the parallel processing of different flatfiles). I also have troubles due to the parallel access to the protocolfile of all these instances.
Anyone can help?
-
June 26, 2009 at 7:52 AM #22726
Can you give more information?
Will all of the files you want to process be in the directory at the same time? Or will they arrive within a given time period, say every 15 minutes? Is there anything in the files that tells us this is file 1 of n so we know how many there are in a batch? Is there a batch identifier in the files?
-
June 29, 2009 at 4:28 AM #22731
To implement a singleton orchestration pattern you will need to build a convoy orchestration. These can be sequential or parallel. To determine which one is best for you, you will need to be more specific about how you will be processing the incoming files. See Brunchey’s questions in the previous reply.
-
June 30, 2009 at 12:27 AM #22742
It can happen, that more than one file arrives in the receiving port (file). There is no rule about the sequence of the received file. It don’t matter, which one is processed first. There is also need to proccess them in-time.
But it could happen, that 10+ files arrive via attachment in one mail. This hammers the server and don’t allow a serial protocoll about the things happen during the processing.
I will try to search some examples about singleton and convoy processing. May u know a sample?
thx in advance
Roland
-
June 30, 2009 at 1:25 AM #22743
Sounds like you need a sequential convoy, there is an example from Stephen Thomas here: http://www.biztalkgurus.com/media/p/15517.aspx
-
June 30, 2009 at 1:58 AM #22744
Thx a lot !
I think this is what I need.
Stephen rules again [Y]
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.