Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
Greenhorn
Posts: 7
  • 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
 
Ranch Hand
Posts: 101
  • 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
  • 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
  • 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
  • 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
 
Look! It's Leonardo da Vinci! And he brought a tiny ad!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic