Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting pool size for ejb ???????????

 
pan bishnoi
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am developing a stateful session bean. i just want to ask how to limit bean pool size to 2 so that i can check been activation and passivation. i also want to know where is this bean pool size parameter.

pankaj bishnoi
 
Ashish Pagare
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The bean pool size setting goes in weblogic-ejb-jar.xml, which is weblogic specific deployment descriptor. A simple configuration looks something like this:

HTH.
 
pan bishnoi
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ashish
Thanks for replying. you have suggested bean pool size for stateless session. what we will do in case of statefulsession.

pankaj bishnoi
 
Ashish Pagare
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For stateful session bean you can specify the cache details in weblogic-ejb-jar.xml file:
<?xml version="1.0"?><!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'><weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>BEAN_NAME_AS_DEFINED_IN_EJB_JAR_D</ejb-name>
<stateful-session-descriptor>
<stateful-session-cache>
<max-beans-in-cache>2</max-beans-in-cache>
<idle-timeout-seconds>100</idle-timeout-seconds>
<cache-type>LRU</cache-type>
</stateful-session-cache>
</stateful-session-descriptor>
<jndi-name>MY_JNDI_NAME</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Since stateful session bean is created for every client there is no pooling associated with it instead welogic provides cache facility. Please refer to the stateful-session-descriptor documentation in weblogic ejb guide for more details.
Thanks.
 
pan bishnoi
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ashish
Thanks for replying. The suggestion you had given has worked.I am able to check ejbActivate and ejbPassivate with stateful session beans.

Pankaj Bishnoi
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic