-
1. Re: How to configure custom DLQ Handler for JBoss 5.1 and HornetQ
dasmurali Dec 7, 2010 4:22 AM (in response to dasmurali)I think (I may be 100% wrong) DLQ handling will be handled at Queue level in HornetQ.
That means we can't use our own custom DLQHandlers in HornetQ?. If this is true, I left with only one option. Create a DLQ and MDB(which listens to this DLQ) and handle the messages.
Thanks and Regards
Murali Reddy
-
3. Re: How to configure custom DLQ Handler for JBoss 5.1 and HornetQ
dasmurali Dec 8, 2010 12:27 AM (in response to clebert.suconic)Thank you for your reply.
I gone through the HornetQ documentation and understand that we can configure DeadLetterQueue's(per RegularQueue or bunch of RegularQueue's) .
That means for processing the messages which are delivered to DLQ, I need to write an MessageListener/MDB which will listen to this DLQ.
Instead of creating MessageListener/MDB, in JBossMQ and JBossMessaging, I can configure DLQHandler which will process(like auditing) before giving the message to DLQ. The difference is I can configure DLQHandler at contianer level. Where as in case of DLQ+MDB approach, I may need to have multiple MDB's (one per DLQ).
I am looking similar feature(existed in JBossMQ and JBossMessaging for handling DLQ messages) in HornetQ.
-
4. Re: How to configure custom DLQ Handler for JBoss 5.1 and HornetQ
clebert.suconic Dec 8, 2010 10:38 AM (in response to dasmurali)You can just use any core API / JMS to manage what's on the address. I don't think you need any extra APIs to manage what's on the address.
-
5. Re: How to configure custom DLQ Handler for JBoss 5.1 and HornetQ
dasmurali Dec 8, 2010 11:02 PM (in response to clebert.suconic)Thank you for your reply.
Can you please provide/redirect me some example or documentation for the same .
In my case, we had multiple DLQ's which are configured (across the board) per regular queue. If I want to follow DLQ+MDB approach, needs to have multiple MDB instances listening to multiple DLQ's.
Or I may need to DIVERT all the messages coming to these different DLQ's to some generic DLQ and had only one MDB listening to this generic DLQ.
Other then this, if you had any better mechanisum, please provide me some example or documentation for the same.
Thanks and Regards
Murali Reddy
-
6. Re: How to configure custom DLQ Handler for JBoss 5.1 and HornetQ
clebert.suconic Dec 9, 2010 9:45 AM (in response to dasmurali)examples/jms/dead-letter
The reason why you won't have any specific Handlers for Dead Letter Addresses is because the core API + JMS combined to the address mechanism from hornetq should be much superior than any DLQ-specific handler.
If you think there's any advantage over the DLQHandler from JBoss-AS, please advice...
-
7. Re: How to configure custom DLQ Handler for JBoss 5.1 and HornetQ
dasmurali Dec 11, 2010 8:55 AM (in response to clebert.suconic)My requirements/thoughts are to have one common Handler which will handle all the messages deliver to DLQ. I use to configure it at EJB container level. I think we can use the generic DLQ(by using wildcard syntax) and had MDB to do this (in HornetQ).
One more doubt, is there any mechanism to inject aspect (like interceptors) in the process of handling message to DLQ.
Once again thank you very much for your help.
Thanks and Regards
Murali Reddy