Interface ConnectionCallback


  • public interface ConnectionCallback
    Callback interface for JCA connection code. When used with ConnectionTemplate, code encapsulated by the methods contained will be run against an open Connection
    Author:
    Ikasan Development Team
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object doInConnection​(javax.resource.cci.Connection connection)
      Code encapsulated by implementations of this will be run against the Connection
    • Method Detail

      • doInConnection

        java.lang.Object doInConnection​(javax.resource.cci.Connection connection)
                                 throws javax.resource.ResourceException
        Code encapsulated by implementations of this will be run against the Connection
        Parameters:
        connection - The connection
        Returns:
        Object return from the work done in the Connection
        Throws:
        javax.resource.ResourceException - Exception from the Connector