com.ibm.websphere.batch.ilc

Interface ILContainer


  1. 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

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

Method Detail

getDB2Connection

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

setDB2Connection

  1. 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

  1. int invokeProcedure(ILProcedure proc)
  2. throws ILContainerException
  3. 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