users@glassfish.java.net

Re: Problems With Message Driven Bean Threading

From: Chris Oman <COman_at_ext-inc.com>
Date: Tue, 2 Aug 2011 10:03:58 -0700

Sounds like the transaction is not committing until MDB1 has returned from onMessage. What is your acknowledgeMode set to?


On Aug 2, 2011, at 12:00 PM, <forums_at_java.net> <forums_at_java.net> wrote:

> I have replicated this problem by creating two MDB, both listening on
> different queues. MDB1 onMessage simply takes the message from the queue and
> places it on MDB2's queue then sleeps for an arbitrary amount of time. The
> wierd thing is, MDB2 will not execute its onMessage until MDB1 has finished
> sleeping and completed its entire onMessage method.
>
> Have been able to replicate this on Red Hat Enterprise Server 5 but not on
> Ubuntu.
>
> I'm open for suggestions.
>
>
>
> Thanks
>
>
> --
>
> [Message sent by forum member 'rpickens']
>
> View Post: http://forums.java.net/node/828549
>
>