What Clients Need To Do In a Pooled Environment

In a non-pooled environment, the client would generally use the LINCEnvironment object in the following way:

  1. Create a new LINCEnvironment object.

  2. Connect it to the host.

  3. Say HI to the Agile Business Suite System (for stateful systems).

  4. Transaction

  5. Transaction

    ..............

10. Close down and destroy the LINCEnvironment object.

In a pooled environment, the same tasks need to be done, but might sometimes be redone:

  1. Create a new LINCEnvironment object, which is allocated from the pool.

  2. Check to see if it is connected using isConnected() and connect it if it is not.

  3. Say HI to the Agile Business Suite System (for stateful systems).

  4. Perform transaction.

  5. Release LINCEnvironment object, which returns to the pool.

  6. Create a new LINCEnvironment object, which is allocated from the pool.

  7. Check to see if it is connected using isConnected() and connect it if it is not.

    It is rare that an object is not already connected.

  8. Perform transaction.

  9. Repeat from step 5 until session is finished.

  10. Close down.