• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DeaD Letter Queues

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ???
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That should have worked. Do you have an MDB which is listening on those queues?

 
Vikram Saxena
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic