Meaningless Drivel is fun!*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes MDB in connection pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "MDB in connection pool" Watch "MDB in connection pool" New topic
Author

MDB in connection pool

Sisir Chanda
Greenhorn

Joined: Jan 03, 2005
Posts: 11
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)?
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
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).


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
161

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


Will reach a single instance


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MDB in connection pool
 
Similar Threads
JUNIT and writting test case for MDB
MDB Timeout??
JMS - MDB - WebSphere
MDB Timeout??
how to configure multiple MDB in DD