March 2019
M T W T F S S
« Jan    
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

WordPress Quotes

Life shrinks or expands in proportion to one's courage.
Anais Nin

Recent Comments

March 2019
M T W T F S S
« Jan    
 123
45678910
11121314151617
18192021222324
25262728293031

Short Cuts

2012 SERVER (64)
2016 windows (9)
AIX (13)
Amazon (34)
Ansibile (19)
Apache (133)
Asterisk (2)
cassandra (2)
Centos (209)
Centos RHEL 7 (261)
chef (3)
cloud (2)
cluster (3)
Coherence (1)
DB2 (5)
DISK (25)
DNS (9)
Docker (28)
Eassy (11)
ELKS (1)
EXCHANGE (3)
Fedora (6)
ftp (5)
GIT (3)
GOD (2)
Grub (1)
Hacking (10)
Hadoop (6)
horoscope (23)
Hyper-V (10)
IIS (15)
IPTABLES (15)
JAVA (7)
JBOSS (32)
jenkins (1)
Kubernetes (2)
Ldap (5)
Linux (188)
Linux Commands (166)
Load balancer (5)
mariadb (14)
Mongodb (4)
MQ Server (24)
MYSQL (84)
Nagios (5)
NaturalOil (13)
Nginx (31)
Ngix (1)
openldap (1)
Openstack (6)
Oracle (34)
Perl (3)
Postfix (19)
Postgresql (1)
PowerShell (2)
Python (3)
qmail (36)
Redis (12)
RHCE (28)
SCALEIO (1)
Security on Centos (29)
SFTP (1)
Shell (64)
Solaris (58)
Sql Server 2012 (4)
squid (3)
SSH (10)
SSL (14)
Storage (1)
swap (3)
TIPS on Linux (28)
tomcat (60)
Uncategorized (29)
Veritas (2)
vfabric (1)
VMware (28)
Weblogic (38)
Websphere (71)
Windows (19)
Windows Software (2)
wordpress (1)
ZIMBRA (17)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Who's Online

17 visitors online now
4 guests, 13 bots, 0 members

Hit Counter provided by dental implants orange county

Dead-letter queues

Dead-letter queues
A dead-letter (undelivered-message) queue is a queue that stores messages that cannot be routed to their correct destinations.
This occurs when, for example, the destination queue is full. The supplied dead-letter queue is called SYSTEM.DEAD.LETTER.QUEUE.
For distributed queuing, define a dead-letter queue on each queue manager involved.

It is defined on the queue manager in the queue to be saved if the message can not be stored in the specified destination.
As an example it is stored in the dead-letter queue if the destination is queueful.
If you can not put it in the Dead-letter queue, the channel stops and the message remains in the transmission queue.

Dead-letter queue definition

We have already defined the Dead-letter queue called DLQ at the previous article (distributed queuing).

DEF QL (DLQ) REPLACE
ALTER QMGR DEADQ (DLQ)

In the case of
DEF QL (DLQ) REPLACE
ALTER QMGR DEADQ (DLQ)

Check dead-letter queue operation

By putting QL.A put on DISABLED on the queue manager QMW to create a state that can not be put into QL.A and sending a message from QMC, the message is stored in the Dead-letter queue on the QMW .

As a preparatory step, execute the following command on QMW on the mqsc interface.

CLEAR QL (QL.A)
15: CLEAR QL (QL.A)
AMQ 8022: WebSphere MQ queue cleared.
CLEAR QL (QL.B)
16: CLEAR QL (QL.B)
AMQ 8022: WebSphere MQ queue cleared.
CLEAR QL (DLQ)
17: CLEAR QL (DLQ)
AMQ 8022: WebSphere MQ queue cleared.
ALTER QL (QL.A) PUT (DISABLED)
18: ALTER QL (QL.A) PUT (DISABLED)
AMQ 800: WebSphere MQ queue changed.
In the case of
CLEAR QL (QL.A)
15: CLEAR QL (QL.A)
AMQ 8022: WebSphere MQ queue cleared.
CLEAR QL (QL.B)
16: CLEAR QL (QL.B)
AMQ 8022: WebSphere MQ queue cleared.
CLEAR QL (DLQ)
17: CLEAR QL (DLQ)
AMQ 8022: WebSphere MQ queue cleared.
ALTER QL (QL.A) PUT (DISABLED)
18: ALTER QL (QL.A) PUT (DISABLED)
AMQ 800: WebSphere MQ queue changed.

Subsequently, from QMC put the message in amqsput to the remote queue definition (referring to QL.A in QMW).

$ Amqsput QRMT.A QMC
Sample AMQSPUT 0 start
Target queue is QRMT.A
I send a message from QMC.

Sample AMQSPUT 0 end
$ Amqsbcg QL.A QMW

AMQSBCG 0 – starts here
**********************

MQOPEN – ‘QL.A’

No more messages
MQCLOSE
MQDISC $

$ Amqsput QRMT.A QMC
Sample AMQSPUT 0 start
Target queue is QRMT.A
I send a message from QMC.

Sample AMQSPUT 0 end
$ Amqsbcg QL.A QMW

AMQSBCG 0 – starts here
**********************

MQOPEN – ‘QL.A’

No more messages
MQCLOSE
MQDISC $
$

However, since QL.A on QMW can not be PUT, the message does not reach QL.A, and the message is stored in the dead-letter queue.

DIS QL (DLQ) CURDEPTH
19: DIS QL (DLQ) CURDEPTH
AMQ 8409: Display Queue details.
QUEUE (DLQ) TYPE (QLOCAL)
CURDEPTH (1)

In the case of
DIS QL (DLQ) CURDEPTH
19: DIS QL (DLQ) CURDEPTH
AMQ 8409: Display Queue details.
QUEUE (DLQ) TYPE (QLOCAL)
CURDEPTH (1)

Use amqsbcg to check the Dead-letter header.

$ Amqsbcg DLQ QMW

AMQSBCG 0 – starts here
**********************

MQOPEN – ‘DLQ’

MQGET of message number 1
**** Message descriptor ****

StrucId: ‘MD’ Version: 2
Report: 0 Msg Type: 8
Expiry: -1 Feedback: 0
Encoding: 546 CodedCharSetId: 819
Format: ‘MQDEAD’
Priority: 0 Persistence: 0
MsgId: X’414D5120514D432020202020202020209093F25002510020 ‘
CorrelId: X’00000000000000000000000000000000000000000000000000 ‘
BackoutCount: 0
ReplyToQ: ”
ReplyToQMgr: ‘QMC’
** Identity Context
UserIdentifier: ‘mqm’
AccountingToken:
X’0334393600000000000000000000000000000000000000000000000000000006 ‘
ApplIdentityData: ”
** Origin Context
PutAppl Type: ‘6’
PutApplName: ‘amqsput’
PutDate: ‘20130114’ PutTime: ‘11241665’
ApplOriginData: ”

GroupId: X’00000000000000000000000000000000000000000000000000 ‘
MsgSeqNumber: ‘1’
Offset: ‘0’
MsgFlags: ‘0’
OriginalLength: ‘-1’

**** Message ****

Length – 198 bytes

00000000: 444 C 4820 0100 0000 0308 0000 514 C 2 E 41 ‘DLH …….. QL. A’
00000010: 2020 2020 2020 2020 2020 2020 2020 2020 ”
00000020: 2020 2020 2020 2020 2020 2020 2020 2020 ”
00000030: 2020 2020 2020 2020 2020 2020 514 D 5720 ‘QMW’
00000040: 2020 2020 2020 2020 2020 2020 2020 2020 ”
00000050: 2020 2020 2020 2020 2020 2020 2020 2020 ”
00000060: 2020 2020 2020 2020 2020 2020 2202 0000 ‘”…’
00000070: 3303 0000 4D51 5354 5220 2020 0600 0000 ‘3 … MQSTR ….’
00000080: 616 D 7172 6 D 70 7061 2020 2020 2020 2020 ‘amqrmppa’
00000090: 2020 2020 2020 2020 2020 2020 3230 3133 ‘2013’
000000 A0: 3031 3134 3131 3234 3236 3737 4920 7365 ‘011411242677 I se’
000000B0: 6E64 2061 206D 6573 7361 6765 2066 726 F ‘nd a message fro’
000000C0: 6D20 514D 432E ‘m QMC.’

No more messages
MQCLOSE
MQDISC $

In the case of
$ Amqsbcg DLQ QMW

AMQSBCG 0 – starts here
**********************

MQOPEN – ‘DLQ’

MQGET of message number 1
**** Message descriptor ****

StrucId: ‘MD’ Version: 2
Report: 0 Msg Type: 8
Expiry: -1 Feedback: 0
Encoding: 546 CodedCharSetId: 819
Format: ‘MQDEAD’
Priority: 0 Persistence: 0
MsgId: X’414D5120514D432020202020202020209093F25002510020 ‘
CorrelId: X’00000000000000000000000000000000000000000000000000 ‘
BackoutCount: 0
ReplyToQ: ”
ReplyTo

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

Blue Captcha Image
Refresh

*

Protected by WP Anti Spam