• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic