Poolable poolable = getService("GenericPool").getPoolable();
In the Java(TM) client, the method above returns an instance of Poolable that is ready for use. Note that the Poolable object is already initialized.
In the application logic layer, an instance of the Poolable is available when the service requester receives the service requester instance from the service requester factory.
Once the service invoker has finished using the Poolable object, it releases the Poolable object back to the pool, as follows:
getService("GenericPool").releasePoolable(poolable);
In the Java client, when you call releasePoolable, the Generic Pool resets the Poolable object automatically.
In the application logic layer, you do not have to call this method to release the Poolable. When you release the service requester, the Generic Pool releases the Poolable object for you.