users@glassfish.java.net

Re: Message Driven Bean receives messages at the same time, transaction

From: <glassfish_at_javadesktop.org>
Date: Mon, 03 May 2010 05:58:30 PDT

Hi phoenixtern,

the annotation REQUIRED means, your MDB is running in a transaction. When your Tx rolls back, your message goes back in queue and will be sent again.
For a synchronous receive, use a session bean and receive the messages directly from the Queue.

Greetings,

Andy
[Message sent by forum member 'angerhard']

http://forums.java.net/jive/thread.jspa?messageID=400169