Home Page › Forums › BizTalk 2004 – BizTalk 2010 › UnSubscribed Messages
- This topic has 2 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
July 7, 2008 at 7:43 AM #20080
Hi,
I am trying to buld a biztalk integration solution in which there is one publisher and multiple subscriber. I am planninf to use direct messagbox publishing. My questions are
How do I build this scenario where I have multiple subscriber to a message and these subscriber can be offline or online without effecting message publisher?
In case all subscriber are off, I want to preserve the message so that it can be consume whenever an subscriber comes online?
Than you.
-
July 7, 2008 at 8:12 AM #20081
Usually I will use direct bound orchestrations for such a scenario. For example, I will set up a receive port that publishes directly to the message box (not bound to any orchestration). Then, I will create orchestrations that begin with a direct bound receive shape with a filter to specify which messages to receive. Now the orchestration will process any messages that arrive in the message box that match the filter. You can have multiple direct bound orchestrations that subscribe to the same message. For routing only scenarios, you can use filtered send ports to acheive the same results.
As for preserving messages when the subscribers are off, this begs a bigger question: How long should the message be preserved? Until 1 subscriber receives it, untiill all subscribers receive it? By default, it is an exception if all subscribers are off.
-
July 8, 2008 at 5:24 AM #20085
Anon,
The solution depends on your idea of online and offline – I can see two possible offline scenarios:
- Messages are still subscribed to by Send Ports, but the Service Window is enabled so these messages are not actually sent until the ‘online’ window; in this scenario, messages are still routed to the various Send Ports but not sent until a designated time; this will ensure that messages are preserved until the Send Port comes back ‘online’. Also, I believe that Service Windows can be manipulated through either the ExplorerOM or WMI.
- The Send Ports are physically unenlisted so no messages are routed.
Be careful with scenario two however in that if you have no subscribers (i.e. Orchestrations or Send Ports), BizTalk will throw an error when publishing the incoming message because it cannot find any subscribers. If you really need the latter option, you could consider having a catch-all Send Port that ensures you never get into the error condition described above and use the NULL Send Adapter to throw away the message.
Hope this helps, Nick.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.