On 1/10/07, JohnRobinson <[EMAIL PROTECTED]> wrote:
Hi folks, I'm hoping someone here can help me out. I've got ActiveMQ setup in JBoss, with two queues, one in and one out. I've got one MDB per queue. I'm using the JCA approach for configuring ActiveMQ in JBoss, and I'm using the VM broker. While I have one outbound queue, and one outbound MDB, each message can go to a different destination, and for a variety of reasons its not feasible to create one queue per concrete destination.
I don't understand what that means :). A queue is a concrete destination?
I've been setting the JMSXGroupID on outbound messages but it doesn't appear to be doing any good. Based on my debug output outbound messages to the same target group are handled by multiple instances of the MDB, so messages to the same destination are handled in parallel, which is not what I expected to see with the JMSXGroupID. I was expecting to see that messages to different destinations (in different groups) would be handled in parallel, while messages to the same group would be processed serially.
Hmm, I wonder if there's some issue with the JCA container and Message Groups. Are you sure you are using the same value of JMSXGroupID and messages are being processed concurrently for the same value?
Have I misunderstood the expected behavior of groups, or do I just not have it setup properly? I haven't done anything special to enable ExclusiveConsumer, but I see groups are mentioned as an extension of that. Does that mean that ActiveMQ has to be configured for ExclusiveConsumer before grouping will work as expected? If so, how does one do that using the JCA interface, or can one?
No - the existence of a JMSXGroupID on a message is enough to enable message groups. I'm wondering if there's some issue with the JCA RA and message groups. You could experiment switching the RA to something like genericjmsra to see if that does any good; or trying switching to the pure JMS client API (rather than MDBs with RAs) to see if that fixes it. -- James ------- http://radio.weblogs.com/0112098/
