javax.resource.spi package) is used by the container
for local transaction management.
A local transaction is managed internal to a resource manager. There is no external transaction manager involved in the coordination of such transactions.
A CCI implementation can (but is not required to) implement the
LocalTransaction interface. If the LocalTransaction interface is supported
by a CCI implementation, then the method
Connection.getLocalTransaction should return a
LocalTransaction instance. A component can then use the
returned LocalTransaction to demarcate a resource manager local transaction
(associated with the Connection instance) on the underlying EIS
instance.
javax.resource.cci.Connection
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | commit()
Commits the current local transaction and release all locks held by the underlying EIS instance. |
| public void |
| begin | back to summary |
|---|---|
| public void begin() throws ResourceException Begins a local transaction on an EIS instance.
| |
| commit | back to summary |
|---|---|
| public void commit() throws ResourceException Commits the current local transaction and release all locks held by the underlying EIS instance.
| |
| rollback | back to summary |
|---|---|
| public void rollback() throws ResourceException Rollbacks the current resource manager local transaction.
| |