org.jboss.jca.core.spi.transaction

## Interface ConnectableResource

-     public interface ConnectableResource

  Defines a resource as connectable, which allows the transaction manager to get access to the connection used by the transaction
  Author:
    Jesper Pedersen

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Object` | `getConnection()` Get a connection from the resource
    `void` | `setConnectableResourceListener(ConnectableResourceListener crl)` Set connectable resource listener

- - ### Method Detail

    - #### getConnection

          java.lang.Object getConnection()
                                  throws java.lang.Exception

      Get a connection from the resource
      Returns:
        The connection
      Throws:
        `java.lang.Exception` - If an error occurs

    - #### setConnectableResourceListener

          void setConnectableResourceListener(ConnectableResourceListener crl)

      Set connectable resource listener
      Parameters:
        `crl` - The connectable resource listener

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)