Hi,
I want to write a Web Service called TransactionWS with the function of
adding several Web Service calls to a transaction.
At the beginning you call the begin(String id) operation of the
TransactionWS (TXWS). The TXWS will call the begin() of the
TransactionManagerImpl then and save the TransactionImpl to a map (using
the id).
Then you call the participate(String soapMsg, String id) of the TXWS
sending a common SOAP message of, for example a common debit operation.
With help of the id the TXWS loads the TransactionImpl of the map and
resumes the Transaction (by calling resume() on the
TransactionManagerImpl). It takes the SOAP messages and enhances it with
the coordination context by calling:
SOAPHeader header = message.getSOAPEnvelope().getHeader();
tx.getCoordinationContex().toSOAPHeaderElement(header);
Now the SOAP message is returned to the client, which sends the enhanced
message. The target banking service will now get the coordination
context with its application message and can register for participation.
I can see the application debit message in the TCP Monitor. I think that
it is completely correct, but the only problem is that the last ">"
which closes the Envelope tag is not there. When I look at the message
with debugging, this ">" is definetly existing. The same occurs in the
followed registration message. There is no response and no error.
Is my project realizable at all with kandula? I think there is maybe a
problem that the transaction is spanning several threads (Everytime
there is an operation on the TXWS there is a new one an there is one for
my client).
Thanks,
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]