I have a MDB which listen to a particular Queue. I have configured a pool of 10 instance of MDB. So if I send a message to that particular queue, does my mssage reach to only one instance of MDB or it will reach to all MDB with in the pool. And again what will happen if my MDB listen to a topic instead of queue(pool with remain same)?
All pooling systems work in the same way: an instance is assigned by the Container to service a request. When that request has been processed, the instance is returned to the pool (assuming that a system exception was not thrown from the instance which would cause the Container to destroy the instance).