com.ibm.websphere.batch.ilc

Class ILContainerFactory

  1. java.lang.Object
  2. extended bycom.ibm.websphere.batch.ilc.ILContainerFactory

  1. public class ILContainerFactory
  2. extends java.lang.Object
ILContainerFactory creates ILContainer instance to use for executing native language procedures inside the WAS z/OS environment.

Constructor Summary

Constructor and Description
ILContainerFactory()

Method Summary

Modifier and Type Method and Description
  1. protected static
  2. void
clearContainerFromThread()
  1. ILContainer
create()
Creates an ILContainer instance.
  1. ILContainer
create(java.sql.Connection db2Connection)
Creates an ILContainer instance that uses the specified DB2 connection.
  1. protected static
  2. com.ibm.ws.batch.ilc.impl.ILContainerImpl
getContainerFromThread()
  1. static
  2. ILContainerFactory
getFactory()
Returns the factory instance singleton for use in creating ILContainers objects.
  1. protected static
  2. void
setContainerOnThread(com.ibm.ws.batch.ilc.impl.ILContainerImpl container)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ILContainerFactory

  1. public ILContainerFactory()

Method Detail

setContainerOnThread

  1. protected static void setContainerOnThread( com.ibm.ws.batch.ilc.impl.ILContainerImpl container)

getContainerFromThread

  1. protected static com.ibm.ws.batch.ilc.impl.ILContainerImpl getContainerFromThread( )

clearContainerFromThread

  1. protected static void clearContainerFromThread( )
  2. throws ILContainerException
Throws:

getFactory

  1. public static ILContainerFactory getFactory( )
Returns the factory instance singleton for use in creating ILContainers objects.
Returns:
the factory instance singleton.

create

  1. public ILContainer create()
  2. throws ILContainerException
Creates an ILContainer instance. If an instance already exists on thread, it is returned with promise from ILContainer runtime that the returned ILContainer belongs to the current execution scope. An execution scope is a batch job step or a remote component invocation (e.g. EJB, servlet).
Returns:
an ILContainer instance.
Throws:
ILContainerException - if the ILContainer creation fails.

create

  1. public ILContainer create(java.sql.Connection db2Connection)
  2. throws ILContainerException
Creates an ILContainer instance that uses the specified DB2 connection. If an instance already exists on thread, it is returned with promise from ILContainer runtime that the returned ILContainer belongs to the current execution scope. An execution scope is a batch job step or a remote component invocation (e.g. EJB, servlet).
Returns:
an ILContainer instance.
Throws:
ILContainerException - if the ILContainer creation fails.