About this task
Use the set
TxCommitProtocol Session API
to enable multi-partition transaction support for
WebSphere eXtreme Scale in a stand-alone environment.
The new API provides the following two options:
- TxCommitProtocol.ONEPHASE: A transaction commit
protocol constant that indicates that the transaction must be committed
with the default one-phase commit. With this option, a transaction
can read from multiple partitions but can write to a single partition
only. A TransactionException exception occurs if the transaction writes
to multiple partitions.
- TxCommitProtocol.TWOPHASE: A transaction commit
protocol constant that indicates that the transaction must be committed
either with the one-phase commit or two-phase commit. If the transaction
writes to a single partition then the one-phase commit protocol is
used. Otherwise, the two-phase protocol is used to commit the transaction,
involving write operations to multiple partitions.
You can also configure multi-transaction support for
WebSphere eXtreme Scale within
WebSphere Application Server. For more information,
see
Developing eXtreme Scale client components to use transactions.
What to do next
You can enable tracing on multi-partition transactions. For
more information, see
Server trace options.