Is there any way to control Max number of beans
in the container ? max bean in pool is the pool
size but may not be the max bean in Container .
Edit the file standardjboss.xml and check the max pool size. You can do it by defining container configuration in jboss.xml also.