开发者

How can I make BizTalk read files in a directory in a certain order?

I'm not a BizTalk expert but my colleagues that are, say that BizTalk cannot read files from a folder in a ordered way. Only socket and queues support this.

They asked me to write a small tool that will read the files ordered by filename or by creation date and put those on a queue.

But isn't there a 开发者_JAVA技巧way that this can be done in BizTalk itself? Personally I'm not fond of the idea that a custom windows service has to be made to accomplish this.


You can't I'm afraid. File transport cannot guarantee order. You need to use an adapter which supports ordered delivery like MSMQ, SQL, or WCF.


Look in the sdk, there is an example of a file adapter. In the past I've modified that code to read the files in a specific order.

http://msdn.microsoft.com/en-us/library/aa578623(v=bts.10).aspx

I don't have the code handy but found this. From here. It gives you an idea as to where you can order the files by date or name.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜