Connectors can submit work instances to the Enterprise Server for execution. By default, the Enterprise Server services work requests for all connectors from its default thread pool. However, you can associate a specific user-created thread pool to service work requests from a connector. A thread pool can service work requests from multiple resource adapters. To create a thread pool:
Use the asadmin create-threadpool command. For details, see the Sun GlassFish Enterprise Server v2.1.1 Reference Manual.
To associate a connector with a thread pool:
In the Admin Console, open the Applications component and select Connector Modules. Deploy the module, or select the previously deployed module. Specify the name of the thread pool in the Thread Pool ID field. For details, click the Help button in the Admin Console.
Use the --threadpoolid option of the asadmin create-resource-adapter-config command. For details, see the Sun GlassFish Enterprise Server v2.1.1 Reference Manual.
If you create a resource adapter configuration for a connector module that is already deployed, the connector module deployment is restarted with the new configuration properties.