## Uses of Interface
javax.transaction.xa.XAResource

- Packages that use XAResource
  Package | Description
  --- | ---
  javax.jms | The Java Message Service (JMS) API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.
  javax.resource.spi | The javax.resource.spi package contains APIs for the system contracts defined in the Java EE Connector Architecture specification.
  javax.resource.spi.endpoint | This package contains system contracts for service endpoint interactions.
  javax.transaction | Provides the API that defines the contract between the transaction manager and the various parties involved in a distributed transaction namely : resource manager, application, and application server.
  javax.transaction.xa | Provides the API that defines the contract between the transaction manager and the resource manager, which allows the transaction manager to enlist and delist resource objects (supplied by the resource manager driver) in JTA transactions.

- - ### Uses of XAResource in javax.jms

    Methods in javax.jms that return XAResource
    Modifier and Type | Method and Description
    --- | ---
    `XAResource` | XASession.`getXAResource()` Returns an XA resource to the caller.
    `XAResource` | XAJMSContext.`getXAResource()` Returns an `XAResource` to the caller.

  - ### Uses of XAResource in javax.resource.spi

    Methods in javax.resource.spi that return XAResource
    Modifier and Type | Method and Description
    --- | ---
    `XAResource` | ManagedConnection.`getXAResource()` Returns an `javax.transaction.xa.XAresource` instance.
    `XAResource[]` | ResourceAdapter.`getXAResources(ActivationSpec[] specs)` This method is called by the application server during crash recovery.

  - ### Uses of XAResource in javax.resource.spi.endpoint

    Methods in javax.resource.spi.endpoint with parameters of type XAResource
    Modifier and Type | Method and Description
    --- | ---
    `MessageEndpoint` | MessageEndpointFactory.`createEndpoint(XAResource xaResource)` This is used to create a message endpoint.
    `MessageEndpoint` | MessageEndpointFactory.`createEndpoint(XAResource xaResource, long timeout)` This is used to create a message endpoint.

  - ### Uses of XAResource in javax.transaction

    Methods in javax.transaction with parameters of type XAResource
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | Transaction.`delistResource(XAResource xaRes, int flag)` Disassociate the resource specified from the transaction associated with the target Transaction object.
    `boolean` | Transaction.`enlistResource(XAResource xaRes)` Enlist the resource specified with the transaction associated with the target Transaction object.

  - ### Uses of XAResource in javax.transaction.xa

    Methods in javax.transaction.xa with parameters of type XAResource
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | XAResource.`isSameRM(XAResource xares)` This method is called to determine if the resource manager instance represented by the target object is the same as the resouce manager instance represented by the parameter xares.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.