Why do I see only one MDB?

Hi,

I'm having a weird issue running my MDB on SAS9.01: I have a stateless EJB JMS producer and an MDB which is both a consumer and a producer.

The test logic is this:

1. the ejb sends a single message

2. the mdb's onMessage method is triggered and does the following:

if the methos has not been called over 5 times (to prevent infinite loops, you'll see why in a sec):

a. sends another message to the queue

b. sleeps for 5 secs

I would have expected that mdb instances would deal with the messages simultaneously, but this is not the case. The messages are handled in a SERIALIZED manner by 2 MDB instances (confirmed by printing out the mdb's toString() result).

why? how can I make sure that messages are consumed more aggressively?

thanks.

[814 byte] By [sagmana] at [2007-11-27 5:28:48]
# 1
problem solved: needed to wrap the message-sending operation in its own transaction, so it completes before the mdb sleeps. This probably means I'll have to work harder to manage the state of my entity beans, but I don't see any other way..
sagmana at 2007-7-12 14:51:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...