JMS - Message redelivery
843830Jun 26 2006 — edited Jun 30 2006I 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