This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maximum number of ejb objects

 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • 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
 
Darryl A. J. Staflund
Ranch Hand
Posts: 312
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
thank's , i'll try it asap!
 
Jamy Wang
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i try it, but doesn't work.. why?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic