• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Stateful Session Beans..Help needed.

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

With regard to Stateful session beans for EJB 2.0 , i coded a bean that will just print a number.

The main thing i tried to go for is to make the pool size as two in jboss . Then i go for creating four stateful session bean instances.Since only two beans are allowed and i am creating four hence the container has to passivate some and activate some. This is mainly the thing i am trying to check out.

For this i added the following to my jboss.xml:


Still am happily creating four instances and none are getting passivated.
I made the calls from four different threads so as to make them concurrent with no help.

Please suggest why the above jboss xml configurations are not making effect.
Does it have any other dependencies?

My Client code is as follows:


My Main Bean class is as follows:





My deployment descriptor and jboss xml are as follows:





Thanks,
Sandip
 
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic