Author |
Message
|
zpat |
Posted: Mon Mar 21, 2011 6:14 am Post subject: Pub/Sub puzzler with admin subs and topic string |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Having set up an administrative subscription it is not working properly. But when I try on another QM the same commands work properly.
The commands are:
Code: |
DEFINE TOPIC(ZPAT.DUP) TOPICSTR('/zpat/test') DURSUB(YES) REPLACE
DEFINE QALIAS(ZPAT.ALIAS) DEFPSIST(YES) TARGTYPE(TOPIC) TARGET(ZPAT.DUP) REPLACE
DEFINE QLOCAL(ZPAT.QUEUE1) DEFPSIST(YES) REPLACE
DELETE SUB(ZPAT.SUB1)
DEFINE SUB(ZPAT.SUB1) DEST(ZPAT.QUEUE1) TOPICOBJ(ZPAT.DUP) DESTQMGR(XXXXXX) DESTCLAS(PROVIDED) EXPIRY(UNLIMITED) REQONLY(NO) PSPROP(NONE)
|
This is the display of the sub on QM 1
Quote: |
DISPLAY SUB(ZPAT.SUB1)
AMQ8096: WebSphere MQ subscription inquired.
SUBID(414D5120454E544831443120202020204D8753EC20010567)
SUB(ZPAT.SUB1) TOPICSTR(/zpat/test/)
TOPICOBJ(ZPAT.DUP) DEST(ZPAT.QUEUE1)
DESTQMGR(XXXXXX) PUBAPPID( )
SELECTOR( ) SELTYPE(NONE)
USERDATA( )
PUBACCT(0000000000000000000000000000000000000000000000000000000000000000)
DESTCORL(414D5120454E544831443120202020204D8753EC20010567)
DESTCLAS(PROVIDED) DURABLE(YES)
EXPIRY(UNLIMITED) PSPROP(NONE)
PUBPRTY(ASPUB) REQONLY(NO)
SUBSCOPE(ALL) SUBLEVEL(1)
SUBTYPE(ADMIN) VARUSER(ANY)
WSCHEMA(TOPIC) SUBUSER(mqm)
CRDATE(2011-03-21) CRTIME(13:47:46)
ALTDATE(2011-03-21) ALTTIME(13:47:46)
|
This is the display of the sub on QM 2
Quote: |
DISPLAY SUB(ZPAT.SUB1)
AMQ8096: WebSphere MQ subscription inquired.
SUBID(414D5120454E544832443120202020204D822BEB2006590F)
SUB(ZPAT.SUB1) TOPICSTR(/zpat/test)
TOPICOBJ(ZPAT.DUP) DEST(ZPAT.QUEUE1)
DESTQMGR(YYYYYY) PUBAPPID( )
SELECTOR( ) SELTYPE(NONE)
USERDATA( )
PUBACCT(0432323136000000000000000000000000000000000000000000000000000006)
DESTCORL(414D5120454E544832443120202020204D822BEB2006590F)
DESTCLAS(PROVIDED) DURABLE(YES)
EXPIRY(UNLIMITED) PSPROP(NONE)
PUBPRTY(ASPUB) REQONLY(NO)
SUBSCOPE(ALL) SUBLEVEL(1)
SUBTYPE(ADMIN) VARUSER(ANY)
WSCHEMA(TOPIC) SUBUSER(mqm)
CRDATE(2011-03-21) CRTIME(13:48:15)
ALTDATE(2011-03-21) ALTTIME(13:48:15)
|
The topic string in the sub is different even though the exact same command file was run. The first example does not work, the second one does (when a PUT is done to the alias queue).
Any ideas - both QMs are on the same box (WMQ 7.0.1.3, AIX)? QM 1 has added an unwanted and uncommanded trailing slash to the topic string in the sub. Other QMs don't do this and I can't see why this would be. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Mon Mar 21, 2011 6:33 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
just a quick guess without making much sense ... ... psmode settings are the same for both qmgrs? _________________ Regards, Butcher |
|
Back to top |
|
 |
zpat |
Posted: Mon Mar 21, 2011 6:37 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
PSMODE on both = enabled. I can't see any system set up differences.
Last edited by zpat on Mon Mar 21, 2011 8:38 am; edited 1 time in total |
|
Back to top |
|
 |
zpat |
Posted: Mon Mar 21, 2011 8:14 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
OK using this format of the command is a workaround - although it should be not be necessary to specify both a topic object and a topic string on a define sub.
DEFINE SUB(ZPAT.SUB1) DEST(ZPAT.QUEUE1) TOPICOBJ(ZPAT.DUP) TOPICSTR('#') PSPROP(NONE)
I would guess the problem is that the define sub command tried to concatenate something after the topic string from the topic object, even when it should not have. Why this behaviour varies between two QMs - I do not know. |
|
Back to top |
|
 |
zpat |
Posted: Mon Mar 21, 2011 8:36 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Right, I have found the reason. For some reason we had lost the SYSTEM.DEFAULT.SUB subscription. I re-created it using the backup MQSC definitions from another queue manager. This was last week.
Guess what - the MS03 backup would appear to have a bug in that a null TOPICSTR value is saved as TOPICSTR(' ') with one blank, instead of TOPICSTR('').
This blank character is therefore added to all new subscriptions that specify only a topic object and a delimiter of / is automatically inserted.
Over to the MS03 maintainer..... |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Mar 21, 2011 8:44 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
This is a bug in the earlier releases of MS03 that supported v7 subscriptions.
It should be resolved in the currently available builds (that report as v 6.1.3.1).
If it is not, please contact me by the email in the read.me. |
|
Back to top |
|
 |
zpat |
Posted: Tue Mar 22, 2011 12:47 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
|
Back to top |
|
 |
|