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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JMS - Message redelivery

843830Jun 26 2006 — edited Jun 30 2006
I have created an MDB which has has an onMessage method that executes code that processes the message. Should the processing fail then a custom failure exception is caught and runTimeException is thrown causing the message to be redelivered. I currently have the redeliverylimit on the MDB's template through the weblogic console set to 3 redelivery attempts with the message eventaully sent to a posion queue after the final delivery attempt. This all works fine. I can send an email every time the message is processed but my problem is that I require an email to be sent on the last redelivery attempt. How can I do this? I could possibly set properties in the message each time it is delivered acting as a count? How could I read the max delivery attempts that I have set up through the console? (Otherwise I will have to set up another property loaded on startup of the managed server but this means the same value stored in two separate places)

Any Help? This is one of my first posts so any advice suggestions are welcome?

Message was edited by:
CaptainRhino

Comments

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

Post Details

Locked on Jul 28 2006
Added on Jun 26 2006
1 comment
143 views