• 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

activation/passivation problem

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I tried to test the activation and passivation of a stateful session bean, I met a problem.
I copied the conf/standardjboss.xml to deploy/jboss-service.xml,and made the following changes:
<container-configuration>
<container-name>Standard Stateful SessionBean</container-name>
......
<container-pool-conf>
<MaximumSize>2</MaximumSize>
</container-pool-conf>
</container-configuration>
In my stateful session bean, I created 3 stateful beans. But in the console of the server, the following messages are given:
16:07:43,740 INFO [STDOUT] call ejbCreate();
16:07:43,981 INFO [STDOUT] call count();
16:07:44,531 INFO [STDOUT] call ejbCreate();
16:07:44,592 INFO [STDOUT] call count();
16:07:45,102 INFO [STDOUT] call ejbCreate();
16:07:45,132 INFO [STDOUT] call count();
16:07:45,633 INFO [STDOUT] call count();
16:07:46,154 INFO [STDOUT] call count();
16:07:46,675 INFO [STDOUT] call count();
16:07:47,716 INFO [STDOUT] call ejbRemove();
16:07:47,726 INFO [STDOUT] call ejbRemove();
16:07:47,736 INFO [STDOUT] call ejbRemove();
No activation/passivation messages are given. Is there anything wrong?
Please help me. Thanks first!
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you change the Container cache configuration

<cache-policy-conf>
<min-capacity>4</min-capacity>
<max-capacity>8</max-capacity>
<overager-period>30</overager-period>
<max-bean-age>60</max-bean-age>
<resizer-period>400</resizer-period>
<max-cache-miss-period>60</max-cache-miss-period>
<min-cache-miss-period>1</min-cache-miss-period>
<cache-load-factor>0.75</cache-load-factor>
</cache-policy-conf>
Now , create more than 8 beans , it will/may call activate/passivate
if You want to get in more depth then
Instance pooling
regards,
Amol
 
Daniel Chai
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your answer!
I have made that changes, but I still can't see the passivation. Do you mind giving me an example which include the configuration file and jar file?
My email is dpchai@omegachina.com
Thanks first!
reply
    Bookmark Topic Watch Topic
  • New Topic