aspose file tools*
The moose likes JBoss/WildFly and the fly likes DeaD Letter Queues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "DeaD Letter Queues" Watch "DeaD Letter Queues" New topic
Author

DeaD Letter Queues

Vikram Saxena
Ranch Hand

Joined: Dec 16, 2008
Posts: 53

Hello,

I am facing a strange problem with JBoss Messaging.
The Jboss messaging comes with a default Dead Letter Queue. I have configured some queues for my application and explicitly created and mentioned the Dead Letter Queues.
Now the default Dead Letter Queue is not bound to any queue as the DLQ, but the DLQ's made by me are serving as DLQ's for the application queue's.

Hope the description is not confusing

Now, the problem is that yes, I can see the dropped messages which are moved into the DLQ, but, not in the DLQ's which I have made and described but in the application's default DLQ, which is not serving as a DLQ to any queue.

Any wild guesses what I have done wrong ???


Vikram
SCJP 5 , SCBCD [Prep Started ] , WLS 8.1 Server Admin
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9315
    
109

Vikram Saxena wrote:
Hope the description is not confusing



I'm completely confused

Please post appropriate configuration files/code and even log messages to explain what exactly is happening Which version of JBossAS and Java do you use?

While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.


[My Blog] [JavaRanch Journal]
Vikram Saxena
Ranch Hand

Joined: Dec 16, 2008
Posts: 53
Hi JaiKiran,

Here you go for an example :

This is my destinations-service.xml

The Default DLQ :


DLQ Created for my Application :


Usage of my DLQ :



Now, all the messages that are being dropped should be going into the DLQ which I have created for my application i.e. TMWFDLQ,
The default JBOSS DLQ is not being used as the DLQ for any of the application queues.

But, I see all the dropped messages in the default DLQ instead of the application DLQ (TMWFDLQ)
I am using JBoss 4.2.3 GA, Jboss Messaging 1.4.0 SP 3 and java 5

Sorry for the confusing problem statement
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9315
    
109

That should have worked. Do you have an MDB which is listening on those queues?

Vikram Saxena
Ranch Hand

Joined: Dec 16, 2008
Posts: 53
Yes Jaikiran,

I have a MDB which is listening to that queue. Now when there is a huge load some 1 of 1000 messages are dropped and thus are put into the DLQ.
Now, when I check in the database in the JBM tables I can see the dropped messages in the default DLQ queue and not in the DLQ which I have created:

select count(MESSAGE_ID) from JBM_MSG_REF where CHANNEL_ID= (select CHANNEL_ID from JBM_POSTOFFICE where QUEUE_NAME='DLQ');

This returns count of all the dropped messages, but

select count(MESSAGE_ID) from JBM_MSG_REF where CHANNEL_ID= (select CHANNEL_ID from JBM_POSTOFFICE where QUEUE_NAME='TMWFDLQ');

returns 0.
So, my problem is that why are the dropped messages not put in the TMWFDLQ and instead are put in the DLQ.
I can see the TMWFDLQ being created without any issues while the server startup as well.
Andy Allen
Greenhorn

Joined: Feb 21, 2012
Posts: 1
Did you ever find a solution to this problem?
Cheers
Andy

Vikram Saxena wrote:Yes Jaikiran,

I have a MDB which is listening to that queue. Now when there is a huge load some 1 of 1000 messages are dropped and thus are put into the DLQ.
Now, when I check in the database in the JBM tables I can see the dropped messages in the default DLQ queue and not in the DLQ which I have created:

select count(MESSAGE_ID) from JBM_MSG_REF where CHANNEL_ID= (select CHANNEL_ID from JBM_POSTOFFICE where QUEUE_NAME='DLQ');

This returns count of all the dropped messages, but

select count(MESSAGE_ID) from JBM_MSG_REF where CHANNEL_ID= (select CHANNEL_ID from JBM_POSTOFFICE where QUEUE_NAME='TMWFDLQ');

returns 0.
So, my problem is that why are the dropped messages not put in the TMWFDLQ and instead are put in the DLQ.
I can see the TMWFDLQ being created without any issues while the server startup as well.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DeaD Letter Queues
 
Similar Threads
Question
Some kind of JMS browser
Disabling DLQ usage for JMS queues
Use of "mappedName" attribute with @MessageDriven EJB3.0
JBoss JMS Queue Message not reached to configured queue, but its wrongly redirected to default DLQ.