All,
I posted this to the Beginners forum but with no reply, so I'm trying here too. I realise that cross-posting is frowned upon, but I need an answer!
I have an MDB listening on a topic. I start a bean-managed transaction within the bean. Let's say that whilst the transaction is executing, another message arrives on the topic.
Will the container create another (or use another pooled) instance of the MDB to handle the message?
If it does, will the container allow the 2nd instance to start a transaction whilst the first transaction is still active?
Had I been using container managed transactions, would the answers to the above two questions be different?
Slightly unrelated, how can I see the number of instances of each bean pooled by the container at any given time? I have looked in the JMX console but I can't find it.
Thanks,
Paul
The container will create up to the number of MDB you have configured. For JBoss this is 15 or so.
Each message sent to a MDB reqiuires a new transaction.
http://www-106.ibm.com/developerworks/websphere/library/techarticles/0304_yu/yu1.html