public interface ApplicationTransaction
Modifier and Type | Method and Description |
---|---|
void |
abort()
The method abort() is called by the SOAPTransaction if one of the ApplicationTransactions has returned
false
during the process() method. |
boolean |
canProcess(java.lang.String type)
Return true if the XML mapper can process methods
defined of the specified type (e.g., SQL, Java, LDAP, etc.)
|
void |
commit()
The method commit() is called by the SOAPTransaction if the entire SOAPTransaction
succeeded and can be committed.
|
boolean |
process(BodyBlock request,
BodyBlock response)
Implement this method to process the relevant body blocks within this transaction.
|
void commit()
void abort()
false
during the process() method.
This causes the SOAPTransaction to call the abort() method on all ApplicationTransactions which were created in it.
In the implementation of this method, it must be noted that any XML nodes that have been appended to a response BodyBlock
will be treated by a client program as if it was the result of an abort of the transaction, so it is important that
any transactional state that was created during a call to the process() method is not appended to the response BodyBlock.boolean canProcess(java.lang.String type)
boolean process(BodyBlock request, BodyBlock response)
response.setAsync(true);
must be called. This has as effect that the SOAPTransaction within which
this request is processed is not committed until the call response.continueTransaction();
is made. This could
happen in another Thread. However, if one of the other BodyBlocks in the SOAPTransaction causes the transaction to abort,
then this ApplicationTransaction will be aborted immediately, and a response will be sent back to the client.request
- The body block that contains the request methodresponse
- The body block that should contain the response from the method