Hi folks,
One solution which comes to my mind is to provide an unique
registration epr's (addition of a unique string by use of wsa
reference parameters)
Hannes,
I'm curious to know how the solution in your implementation to this
problem...
That's what we did. The initiator provides a "match code" (which must be
unique within a context) to the coordinator who returns a
CoordinationContext tagged with an registration ticket.
When that CoordCtx object is used by a participant to register, the
coordinator will attach the match code to the corresponding match code.
The coordinator also assigns a unique participant identifier to the
participant.
So we have in fact two identification tags for participants:
1. The matchcode, between initiator and coordinator;
2. The participant ID, between coordinator and participant.
A side effect of this implementation is that a particular coordination
context object may only be used for one registration, and that the
coordinator will reject participants who try to register for an
already-in-use or non-registered matchcode.
Since WS-BA does not require any of this, it should be fine. Anyways, a
business partner may always create a subcontext and register that one as
a single participant, using the provided ctx object. This is still possible.
Note that there is a race condition built into the protocol, as the
participant could report "Completed" before the Cancel command reaches
it.
According to the state chart given in the spec, participant should
resend completed.. Then the coordinator should take appropriate action
to that based on business logic authors decision on that..
Exactly. None the less, the initiator cannot be sure if the participant
will really cancel until it receives a Canceled or Completed message.
I guess a participant could anyways just ignore Cancel and always report
Completed, so one shouldn't rely on Cancel too much.
The WS-BAI-Specification has a section on this problem, see section
3.4.1 in the upcoming PDF document.
The user selects any number of participants,
Can we select exactly one identified participant..
Yes, by providing the corresponding matchcodes, e.g. "Cancel
participants [Pa, Pb]".
See the upcoming WS-BA-I draft.
Best regards,
-hannes
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]