I have created an EjbHomeFactory as described in the EJB Design patterns book. For every type of home interface, I store one instance returned from the jndi lookup in my factory.

Recently I saw some code that kept a whole pool of instances for every type of home interface.

Have I created some kind of bottleneck in my code? Does this mechanism prevent me from scaling my app because all beans will be created through the same home interface? Or is the code I saw needless complex?