Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide

ProcedureTo enable request partitioning

  1. Configure additional threadpools for EJB execution using the Admin Console.

  2. Add the additional threadpool IDs to the Application Server’s ORB.

    You can do this by editing the domain.xml file or through the Admin Console.

    For example, enable threadpools named priority-1 and priority-2 to the <orb> element as follows:

    <orb max-connections="1024" message-fragment-size="1024"
  3. Include the threadpool ID in the use-thread-pool-id element of the EJB component’s sun-ejb-jar.xml deployment descriptor.

    For example, the following sun-ejb-jar.xml deployment descriptor for an EJB component named “TheGreeter” is assigned to a thread pool named priority-2:

  4. Restart the Application Server.