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
 Object getConnection()
          Get a connection from the resource
 void setConnectableResourceListener(ConnectableResourceListener crl)
          Set connectable resource listener
 

Method Detail

getConnection

Object getConnection()
                     throws Exception
Get a connection from the resource

Returns:
The connection
Throws:
Exception - If an error occurs

setConnectableResourceListener

void setConnectableResourceListener(ConnectableResourceListener crl)
Set connectable resource listener

Parameters:
crl - The connectable resource listener


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)