ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Dead-Letter Queue Simple Setup -No messages goes to DLQ

Post new topic  Reply to topic
 Dead-Letter Queue Simple Setup -No messages goes to DLQ « View previous topic :: View next topic » 
Author Message
JohnRodey
PostPosted: Wed Apr 13, 2005 10:03 am    Post subject: Dead-Letter Queue Simple Setup -No messages goes to DLQ Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

I changed my QM setting to add the SYSTEM.DEAD.LETTER.QUEUE as the DEADQ.

Is this the only setup I need to get the DLQ to pickup messages?

I have tried posting a messages to a queue which was full using the sample imqsput. This just returns a 2053 (Queue Full). When I check the SYSTEM.DEAD.LETTER.QUEUE there are no messages.

I read somewhere that it has to be a client application from another machine for it to go to the DLQ. I tried this with the same results.

I have also tried letting a message on the queue expire to see if it was sent to the DLQ and after expiration it disappeared and didn't show up on the DLQ.

Do I have to setup a channel or something?
How can I test to ensure the DLQ is working?

I appreciate any help!!!
Back to top
View user's profile Send private message
javagate
PostPosted: Wed Apr 13, 2005 10:42 am    Post subject: Reply with quote

Disciple

Joined: 15 Nov 2004
Posts: 159

An expired message won't go to the DLQ!
Try sending a msg to a queue name that does not exist from a remote qmgr.
_________________
WebSphere Application Server 7.0 z/OS &
MQ 6.0. I work with WebSphere in the real world not in some IBM lab.
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Apr 13, 2005 11:25 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Messages end up on the dead letter queue after WMQ has accepted them and then runs into problems delivering them. When you tried to put to a queue that was already full, WMQ realized and didn't accept the message. As javagate said, the best way to get them on the dead letter queue is to do it remotely.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
JohnRodey
PostPosted: Wed Apr 13, 2005 11:38 am    Post subject: Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

first of all thanks for your quick replies.

So messages only end up on the DLQ if they are being passed around by transmission queues through channels and aren't excepted by the remote queue?

If I wanted to get a message onto the DLQ based on a error in my code (such as queue full, or unknown mq object) I would have to actually add it to the DLQ in my code?
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Apr 13, 2005 11:50 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Code:
If I wanted to get a message onto the DLQ based on a error in my code (such as queue full, or unknown mq object) I would have to actually add it to the DLQ in my code?


You should actually use some other queue for this kind of purposes. You SHOULD NOT use DLQ for this kind of error handling.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
JT
PostPosted: Wed Apr 13, 2005 12:07 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

It's possible to put a message to the DLQ without a remote queue manager. Here's how:
  • In the WebSphere MQ Explorer console, add a local queue manager
  • Create an Initiation queue, take all the default settings
  • Create a Process definition, add an invalid 'Application Identifier', i.e. C:jfsnhfms.bat
  • Create a Local queue, set the trigger 'On', the Trigger Type to 'Every', the Initiation Queue Name and the Process Name
  • Snap in the WebSphere MQ Services for the local machine, and create a Trigger Monitor for the initiation queue, don't forget to start the trigger monitor
  • Put a message to the Local queue, the message will show up on the DLQ with a Reason Code of 'MQFB_APPL_CANNOT_BE_STARTED'
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Apr 13, 2005 1:09 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

JT wrote:

[*]Put a message to the Local queue, the message will show up on the DLQ with a Reason Code of 'MQFB_APPL_CANNOT_BE_STARTED'[/list]


Just to clarify,
The trigger message will go to the DLQ. The application message will still be on the original q.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Dead-Letter Queue Simple Setup -No messages goes to DLQ
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.