-
1. Re: How to handle messages "just before" sending to DLQ ?
jaikiran Dec 6, 2010 11:51 PM (in response to dasmurali)1 of 1 people found this helpfulWhy not configure your own custom DLQ and then have a MDB which listens to that queue and add the auditing code there?
-
2. Re: How to handle messages "just before" sending to DLQ ?
dasmurali Dec 7, 2010 12:33 AM (in response to jaikiran)Hi Jaikiran,
Thanks allot for your reply. I think, I had two ways to resolve this.
First one will be as you mentioned use separate DLQ+MDB which will do auditing.
Second solution(I prefers it) is to have a custom DLQHandler implementaion (extending "GenericDLQHandler") and handle auditing before redelivering to DLQ(i.e after "handleDelivery()"). And configure this custom DLQHandler in our custom "invoker".
I am not sure about the trade offs. What is your take on both approaches?
Thanks and Regards
Murali Reddy
-
3. Re: How to handle messages "just before" sending to DLQ ?
jaikiran Dec 7, 2010 12:38 AM (in response to dasmurali)My guess is that the second approach that you mention isn't going to work as soon as you move to a different JMS provider (like in AS6 where HornetQ is used).
-
4. Re: How to handle messages "just before" sending to DLQ ?
dasmurali Dec 7, 2010 1:07 AM (in response to jaikiran)How the HornetQ RA (hornetq-ra.rar) is handling the DLQ logic?
I guess(please correct me if wrong) the DLQ logic is provided by both JMS providers (like JBoss Messaging/HornetQ) and resource adapters (like jms-ra.rar and hornetq-ra.rar). And the resource adapter DLQ logic will override JMS Provider logic(again this is my guess only).
So once we moved to JB6/HornetQ, the DLQ logic will be handled by JMS Provider(i.e HornetQ) only?
Thanks and Regards
Murali Reddy
-
5. Re: How to handle messages "just before" sending to DLQ ?
jaikiran Dec 7, 2010 1:11 AM (in response to dasmurali)KVMKrishna Reddy wrote:
How the HornetQ RA (hornetq-ra.rar) is handling the DLQ logic?
I don't really know, and that's why I said "I guess"