com.ibm.websphere.batch.ilc

Interface ILContainer



  • public interface ILContainer
    ILContainer represents an execution containment for native language programs, such as COBOL. The ability to invoke such native programs is limited to use on the z/OS operating system. The ILContainer can be used in a "stub" mode on other platforms to test business logic on a platform other than z/OS.
    See Also:
    ILProcedure
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.sql.Connection getDB2Connection()
      Gets the DB2 connection currently assigned to this ILContainer.
      int invokeProcedure(ILProcedure proc)
      Invokes the specified procedure inside this ILContainer.
      void setDB2Connection(java.sql.Connection db2Connection)
      Sets the DB2 connection to be shared with procedures invoked inside of this ILContainer.
    • Method Detail

      • getDB2Connection

        java.sql.Connection getDB2Connection()
        Gets the DB2 connection currently assigned to this ILContainer.
        Returns:
        the DB2 connection.
      • setDB2Connection

        void setDB2Connection(java.sql.Connection db2Connection)
        Sets the DB2 connection to be shared with procedures invoked inside of this ILContainer.
        Parameters:
        db2Connection - specifies the DB2 connection to share.
      • invokeProcedure

        int invokeProcedure(ILProcedure proc)
                            throws ILContainerException,
                                   ILProcedureException
        Invokes the specified procedure inside this ILContainer. The target procedure executes in the same transactional context as the caller. The db2 connection attached to this ILContainer will be used for any SQL invoked by the target procedure. The security environment of the target procedure is the same as the callers.
        Parameters:
        proc - specifies the procedure to invoke.
        Returns:
        the return code from the target procedure.
        Throws:
        ILContainerException - thrown if the target procedure cannot be loaded or for an internal failure of this ILContainer.
        ILProcedureException - thrown if target procedure encounters an error
IBM WebSphere Application ServerTM
Release 8.5