Patent ID: 7389513

Claim:
A method of interfacing with an engine, the method comprising the steps of: creating a bean pool by the following steps: instantiating at least one stateful bean; for each stateful bean instance, allocating an engine; associating each stateful bean instance with the allocated engine, each stateful bean instance operating as an interface for accessing the allocated engine; and adding said each associated stateful bean instance to the bean pool so that said stateful bean instances in the bean pool are available for handling requests; receiving a request for an engine from a client; selecting a stateful bean instance corresoonding to the engine; retrieving a stateful bean instance from the bean pool if the stateful bean instance is available in the bean pool or instantiating a stateful bean, allocating the engine for a new stateful bean instance, and adding the new stateful bean instance to the bean pool if the stateful bean instance is not available in the bean pool; conveying the request to the retrieved stateful bean instance; processing the request with the engine associated with the retrieved stateful bean instance; and releasing the retrieved stateful bean instance to the bean pool upon ending or interruption of the processing.