• 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

maximum number of ejb objects

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey folks,
i wanna run a test stateful session bean to see the implementation of activation/passivation
methods ny the container.
to make the container run those methods i have to set the maximum number of ejb objects the server can keep in memory and initialate more ejb objects than this number.
the question is where can i set this number?
i was thinking about standardjboss.xml, but i didn't see the right place there...
thank's for ya help
 
Ranch Hand
Posts: 314
2
Android VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Asher,
You can make the change in the <server>/conf/standardjboss.xml file as follows (NB: I am assuming you're testing activation and passivation of stateful and stateless session beans):
<jboss>
<!-- Stateless Session Bean -->
<container-configuration>
<container-name>Standard Stateless SessionBean</container-name>
<container-pool-conf>
<MaximumSize>100</MaximumSize>
</container-pool-conf>
</container-configuration>
<!-- Stateful Session Bean -->
<container-configuration>
<container-name>Standard Stateful Session Bean</container-name>
<<container-pool-conf>
<MaximumSize>100</MaximumSize>
</container-pool-conf>
</container-configuration>
</jboss>

Instead of modifying the conf/standardjboss.xml file, just create a copy of it, modify it as needed, and place it in your deploy directory under the name 'jboss-service.xml'. It will be read and its settings will kick in and override those of the conf/standardjboss.xml file.
You can also modify other settings here such as the time to activation and passivation, etc. For a full description of the settings, just read the appropriate comments in the '<jboss_home>/docs/dtds/jboss_3_0.dtd' directory.
I hope this helps.
Darryl
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank's , i'll try it asap!
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i try it, but doesn't work.. why?
 
Something about .... going for a swim. With this tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic