This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "maximum number of ejb objects" Watch "maximum number of ejb objects" New topic

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
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):
<!-- Stateless Session Bean -->
<container-name>Standard Stateless SessionBean</container-name>
<!-- Stateful Session Bean -->
<container-name>Standard Stateful Session Bean</container-name>

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.
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
I agree. Here's the link:
subject: maximum number of ejb objects
Similar Threads
Question about VEctor
No of bean instances in pool
Basic Q
Regarding Entity beans and value objects
max connections error