Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can i avoid a message to be resent to the queue after exception?

_blackjackJul 31 2012 — edited Aug 1 2012
Hi All,

I'm going through a problem upon dealing messages from a queue. My MDB reads the message M from Queue Q. Inside onMessage method there are some calls to other services. Whenever a transaction fails inside those services, the MDB instance is destroyed and message M is sent back to the Queue Q. I want to avoid this behavior, what I mean is that I want to avoid message Me to be resent to the queue. Is is possible?
MDB is in a Bean Managed Transaction.

Thanks

Comments

User_XPEES

Any comments please?

User_XPEES

any recommendations or comments please?

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 29 2012
Added on Jul 31 2012
2 comments
1,646 views