Specifying Transaction Support in Connections
Return the appropriate transaction support level in your WmManagedConnectionFactory.queryTransactionSupportLevel implementation to support transactions in your adapter.
![*](chapterTOC_bullet.png)
For local transaction support, override the
WmManagedConnection.getLocalTransaction method to return a
javax.resource.spi.LocalTransaction object that is capable of interfacing with the transactional capabilities of your resource.
![*](chapterTOC_bullet.png)
For XA transaction support, override the
WmManagedConnection.getXAResource method to return a
javax.transaction.xa.XAResource object that is capable of interfacing with the XA transactional capabilities of your resource.
Important:
Do not call the super method when you override getLocalTransaction or getXAResource methods.