Both.
When the Message is published to the MessageBox, all Subscriptions are evaluated and for each match, two in your example, a routing entry is created for each Service, Orchestration or Send Port, that should get a copy of the message.
Only one copy is stored in the MessageBox. Only when all subscritpions have been satisfied, by delivering the Message, will it be marked for cleanup.
The Service, Orchestration or Send Port, has to be at least Enlisted for the Subscription to be evaluated.
For clarity, there is no concept of priority in this case. The Orchestration and Send Port will pick up the messgae when it gets to the top of it's own queue which can be at different times depending on runtime circumstances.
- Edited by
boatseller
Wednesday, March 19, 2014 1:37 PM
- Marked as answer by
Tomislav Glava
Wednesday, March 19, 2014 1:55 PM