Sun Java System Application Server 9.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"
        use-thread-pool-ids="thread-pool-1,priority-1,priority-2">       
  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:

    <sun-ejb-jar> 
      <enterprise-beans> 
        <unique-id>1</unique-id> 
        <ejb> 
          <ejb-name>TheGreeter</ejb-name> 
          <jndi-name>greeter</jndi-name> 
          <use-thread-pool-id>priority-1</use-thread-pool-id> 
        </ejb> 
      </enterprise-beans> 
    </sun-ejb-jar>
  4. Restart the Application Server.