Abhishek Gahlout
Abhishek Gahlout

Reputation: 3462

Can I do some custom action when Biztalk retry to send the message to send port?

I know, that BizTalk retries to send the message again, if message sending failed due to some reason.

Can I call some C# method when BizTalk retry action happen?

If yes then, how?

Upvotes: 1

Views: 469

Answers (1)

zurebe-pieter
zurebe-pieter

Reputation: 3266

Unfortunately, you cannot call a method when the port is retrying. However, you can disable the retry functionality and mimic the same behavior in a BizTalk orchestration. You would need to implement Delivery Notification on your logical port in your BizTalk orchestration. This way, when delivery fails, you can implement your custom code when retrying.

More info on delivery notification can be found here: http://kentweare.blogspot.be/2007/11/biztalk-delivery-notification.html

You can even customize your own retry mechanism for any given amount of tries with any given amount of delay.

So in short: no built-in functionality, you would need to do the same, which is trivial using Delivery Notification.

Upvotes: 2

Related Questions