A resource adapter implements the javax.resource.spi.LocalTransaction interface to provide support for local transactions that are performed on the underlying resource manager.
If a resource adapter supports the LocalTransaction interface, then the application server can choose to perform local transaction optimization (uses local transaction instead of a JTA transaction for a single resource manager case).
javax.resource.spi.ManagedConnection
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void |
| begin | back to summary |
|---|---|
| public void begin() throws ResourceException Begin a local transaction
| |
| commit | back to summary |
|---|---|
| public void commit() throws ResourceException Commit a local transaction
| |
| rollback | back to summary |
|---|---|
| public void rollback() throws ResourceException Rollback a local transaction
| |