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)