GeeCON Prague 2014*
The moose likes JBoss/WildFly and the fly likes maximum number of ejb objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "maximum number of ejb objects" Watch "maximum number of ejb objects" New topic
Author

maximum number of ejb objects

Asher Tarnopolski
Ranch Hand

Joined: Jul 28, 2001
Posts: 260
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


Asher Tarnopolski
SCJP,SCWCD
Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
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

Joined: Jul 28, 2001
Posts: 260
thank's , i'll try it asap!
Jamy Wang
Ranch Hand

Joined: Sep 21, 2003
Posts: 83
i try it, but doesn't work.. why?


Best Regards<br /> <br />SCJP1.4 SCJD1.4 SCEA
 
GeeCON Prague 2014
 
subject: maximum number of ejb objects