users@glassfish.java.net

Request Partitioning for Session Bean

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Mar 2009 02:21:02 PDT

Following changes have been made for testing Thread Pool for Session Bean as per sun’s doc suggestion http://docs.sun.com/app/docs/doc/819-3681/abecu?a=view.
But i found the bean is not executed by the assigned or dedicated thread pool.
 
      1) session-pool-1 Thread Pool is created through admin console
      2) Threadpool id(session-pool-1) added to the Application Server’s ORB.
                   <orb max-connections="1024" message-fragment-size="1024" use-thread-pool-ids="thread-pool-1,mdbLowpriorityWorkmanager,session-pool-1"/>
      3) Adding threadpool ID in the use-thread-pool-id element of the EJB component’s sun-ejb-jar.xml deployment descriptor
         <ejb>
             <ejb-name>TestGlassFishBean1</ejb-name>
             <jndi-name>ejb/testGlassFish1</jndi-name>
             <use-thread-pool-id>session-pool-1</use-thread-pool-id>
         </ejb>

 Result:
 [#|2009-03-06T14:21:25.811+0530|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=[b]httpSSLWorkerThread-8080-1[/b];|
TESTING SESSION BEAN|#]

Please find the source code and deployment descriptor attachment and let me know anything else i need to add.

Thanks,
Rajesh
[Message sent by forum member 'rajeshkannacse' (rajeshkannacse)]

http://forums.java.net/jive/thread.jspa?messageID=336006