I need some help on this issue - my application uses more stateless session beans, but some of them are used often, and others only seldom. For this reason I would like to have in my container more instances of the EJBs often used, and only a few instances of the other beans (to save memory ;-)).
I thought that maybe I can limit the number of instances in the pool for the seldom used beans, but I don't know how I could do something like this.
I know the <container-pool-conf> container configuration tag from standardjboss.xml and jboss.xml, but they limit the number of instances in the container, but not specific to one EJB (but to all EJBs put in that container).
From the adminguide:
"By placing a jboss.xml file in the EJB JAR METAINF
directory, you can specify either overrides for container configurations in the standardjboss.xml file, or entirely
new named container configurations. This provides great flexibility in the configuration of containers. ...."
thank you for your quick answer.
I also don't see other solution but creating different containers - one for frequently used beans, with a bigger number of instances, and another one for the seldom used beans, with a smaller number of instances.
Another question now - how can I see in which contaner JBoss put each bean?
(in case I dont't specify the container in jboss.xml)