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
posted
0
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