Any COM+ object can be pooled, provided it meets several requirements in terms of interfaces and thread marshalling. Java objects, registered as COM objects (with javareg.exe), meet the necessary requirements and can be loaded as COM+ objects and pooled.
The following steps describe how to pool objects:
Note: Visual Basic (up to version 6) does not meet the necessary requirements and cannot be pooled via this mechanism. This means you cannot use the VB Wrapper sample code with object pooling at this time
Ensure that the LINCEnvironment object is registered as a COM object.
The Component Enabler installer does this for you.
If you are performing a manual install refer to the Installation and Configuration section.
On the Control Panel, under Administrative tools, open the Component Services manager.
Locate your virtual directory under Component Services/Computers/My Computer/ COM+ applications.
Your virtual directory should be visible as something similar to IIS-{Default website//Root/DWTEST}.
Expand the virtual directory entry, and right-click Components.
Select New/Component. The Component Install Wizard is started.
Click Next.
Click the Import component(s) that are already registered button.
Scroll down the list until you find the Program ID name that you registered the component with in Step 1. By default, this is usually LINCEnvironment.Java.1.
Click Next > Finish.
The LINCEnvironment object has been loaded as a COM+ component.
Right-click the new component and select Properties.
On the Activation tab, click Enable object pooling.
To start, make the minimum and maximum pool sizes the same. A good starting value is 100.
Click OK to complete the process. The COM+ LINCEnvironment object has been pooled.