Sending ebMS 3.0 UserMessage to multiple destinations (multicast pattern)
Hello everybody,
I am rather new to ebMS and ebXML, but I'm looking if it can be used to work out a project of us. One of the patterns we have to support is to have MessageProducers sending a message that needs to be routed by the MSH to one or more MessageReceivers (something like a multicast).
We want to avoid putting the work on the producers to send multiple messages with one Party, but instead want to have them sending one message with multiple PartyId elements in the eb:To. The XML schema allows for this, but if I look in the technical spec, I can see the following statement:
eb:Messaging/eb:UserMessage/eb:PartyInfo/eb:From/eb:PartyId
The REQUIRED PartyId element occurs one or more times. If it occurs multiple times, each instance MUST identify the same organization.
Does this mean we cannot have one-to-many message communication, using ebMS3.0?
Submit vs Send
You are talking about the Submit() operation whereas the specification is focussed on the communication between MSHs. The Submit() operation is only defined in an abstract way, as it is dependent on product or middleware. Some product could perhaps provide a SubmitMulti() operation that allows the Producer to submit a single submitted user message that is to be sent to multiple destinations. But those submitted user messages would map to distinct user messages, all of which could have their own message identifier, would individually succeed or fail etc.