Object Pooling

When using the CEWindowsAPI (but not CEWindowsAPIJavaStyle), it might be possible to use “Object Pooling”. Refer to “Using a Pooled Object” for more information on Object Pooling.Object Pooling allows the use of a “pool” of already created LINCEnvironment objects. These objects might already be connected and logged onto the runtime system, thus saving a lot of time for clients that only want short term use of a connection, such as Web Services.

Object Pooling should only be used where you do not keep any ”state” information from one ispec to the next. For example, you do not store anything in GLB.WORK in one ispec for use in another ispec.

If your application is stateless (or at least the parts that you are accessing with the client), you can also use object pooling in clients such as ASP.NET.

To use object pooling, there are a number of things that are different from using a normal object as described below.