I would like to limit the bean pool size to 2 beans and create 3 different bean objects so that one of them would be passivated when they are called. How do I implement this in JBOSS ? I tried to write some code by editing the jboss.xml file. But its not correct because I am getting deployment errors. Can anyone give me the code for doing this ?