Forum Replies Created
-
AuthorPosts
-
i did not come across such situation, but its looks logical. you cannot place a following correlation because there is no guarantee when the second receive gets a message. And the atomic scope has to finish its scope immediately.
Correct!
Hello Soren,
just to give some feedback: I’ve had exactly the same problem and by posting the link you provided the solution ! Now many things concerning other computers work.
Thank you very much !
Regards, Michael
Hi Jitendra,
I beleive you need a party for every unique recipient of your EDI documents. We receive EDI and send 997 Acknowledgements and I have a party for ourselves and one for each of our suppliers.
Are they about the business rules composer ?
Maybe I messed up…
Hi Skynyrd,
I would have thought these questions were acceptable for a BizTalk Interview, although the first two don’t relate to Orchestrations….
If you’re having difficulty answering them, I would suggest a little more research and exposure to BizTalk development.
Regards, Nick.
To clarify:
Option 1: Receive messages from trading partners in their format (validating and disassembling on the Receive Pipeline) and map on the Receive Port into you canonical format. Subscribe to that Message Type in ‘Orch2’ using direct message binding and have Orch2 do the work it needs to do (so in reality you’d just have one orchestration, even though were calling it Orch2 in this scenario).
I’ve used this approach myself and yes you can receive bad messages from trading partners, however this is normally picked-up in your Xml Validator before passing to the map. Where this happens, the message will be suspended. Save the message locally and amend it, or subscribe to failed messages and push them to some web-app / win-forms app where the Xml can be corrected (or get the trading partner to send you correct data!! 🙂 If you’re concerned about losing messages, I implemented an archiving component that can be used in the Decode Stage of a Receive Pipelineto archive the message to the file-system before any work is performed (if you search CodePlex for BizTalk Archiving Component you should find it).
Option 2: You need to perform a translation (i.e. map) between Orch1 and Orch2, but you don’t have a Receive or Send Port in which to do it because you are doing direct message binding. I therefore suggest that you subscribe to messages coming from Orch1 in a Send Port which pushes the message to an MSMQT queue (which is actually a BizTalk receive location exposed as an MSMQ queue!!); the Receive Port exposing the MSMQT queue can then perform the translation and publish back to the message box (you could alternatively use a standard MSMQ queue so you require a persistent message-store). The translated message can then be subscribed to by Orch2 (in a Direct Binding manner). Its a long winded way to acheive a transformation, but a necessary evil if you don’t want to put a map in either of your orchestrations.
If you can get rid of Orch1 in your original post, I would suggest Option 1 above – its much cleaner and far less complicated to implement IMHO.
Regards, Nick.
While Nick is correct, I would also add that the SQL Server Databases, mainly the MessageBox make significant contributions to the overall solution. If anything SQL Server acts as the “brain” of BizTalk. The Host instances(or windows services) really process whatever work is set aside for it via the BizTalk Databases.
Also check out Delivery Notification: http://kentweare.blogspot.com/2007/11/biztalk-delivery-notification.html
Becareful with SMTP though. The behaviour that I have experienced is that BizTalk can pass the message off to the mail server(in my case Exchange) but if the mail server cannot not deliver it, BizTalk will not be made aware since it is really just a hand off to the email server. To mitigate some of the risks, have the reply address in your send port configuration an account that is monitored, this way if the mail bounces back at least you will know about it.
Kent
Thanks Nick. Just to confirm if i understand your solution well.
1. You don’t mention what you need Orch1 to do, so is it possible to
remove it, map on the Receive Port and still use Direct Message binding
in Orch2 to subscribe to messages?My Orch1 responsibility is ONLY to pull message(of their type) from third party and dump in MsgBox.What you are saying is, i need to receive Msg1 from the receive port of the third party and transform the msg there itself to my canonical format and then dump that canonical format to MsgBox. So my Orch2 will subscribe to this canonical format and i still can use direct binding. In this scenario i have to transform msg in my receive port itself when receiving Msg from third party. What if, i get transformation error, will i loose the original message which the client send me. I dont want them to be notified with any errors. All i have to do is just receive msg and if I’m transforming and get error i should not loose that original message.
2. When you publish from Orch1 to the MsgBox, rather than subscribe
directly from Orch2, subscribe to the message via a Send Port which
pushes the message onto an MSMQT Receive Location, do the map on the
Receive Port and publish back to the MsgBox. Once the message is
re-published (in the mapped format), subscribe to it via Orch2.You mean to say my Orch1 should not publish the Msg to MsgBox but should send it to MSMQ queue and my another Orch3 will subscribe to this Msg and transform it and dump in MsgBox and from there my Orch2 will subscribe to this canonical msg from MsgBox.
Appreciate your response.
“but how can i define map in direct binding port which reads msg from MsgBox” – You can’t unfortunately.
I can see two possible options here:
1. You don’t mention what you need Orch1 to do, so is it possible to remove it, map on the Receive Port and still use Direct Message binding in Orch2 to subscribe to messages?
2. When you publish from Orch1 to the MsgBox, rather than subscribe directly from Orch2, subscribe to the message via a Send Port which pushes the message onto an MSMQT Receive Location, do the map on the Receive Port and publish back to the MsgBox. Once the message is re-published (in the mapped format), subscribe to it via Orch2.
Hope this helps?
Nick.
Perfect, thanx.
April 22, 2008 at 7:01 AM in reply to: why my recieve location is getting disabled when iam refreshing . #19425I’ve had this problem as well and it was related to permissions.
On a side note, even when I had the correct credentials coded into the receive location I was still getting the error…we forgot the allow the account to “Log Into…” the machine that the share was located on. Once this was set, everything worked fine. I’m not sure if it was related to the BizTalk service running as a local account or not.
Thanks John.
Byron,
BizTalk, by design, will handle incoming messages in parallel. In fact it’s tricky to make BizTalk handle just one document at a time (but it can be done).
But my recommendation is to let BizTalk do it’s stuff. Set up a test which will stress this aspect of your app, and then if there are problems, introduce some kind of throttling technique. But to start with just let BizTalk handle the problem itself.
John D.
-
AuthorPosts