Author |
Message
|
bruce2359 |
Posted: Mon Aug 19, 2019 6:20 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9472 Location: US: west coast, almost. Otherwise, enroute.
|
HubertKleinmanns wrote: |
I was able to subscribe to "userdata" and put the message to a queue alias, but I was not able, to put it to a topic alias. I got the error
Quote: |
AMQ8470E: The object <Name of the alias> is not a valid subscription destination. |
|
Please post the <Name of the alias> definition here for all to see. Please also post the target of the alias. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Mon Aug 19, 2019 6:54 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
Hi,
these are the MQSC definitions:
Quote: |
DEFINE SUB('PoC') +
TOPICSTR('poc/#') +
PSPROP(RFH2) +
DEST('PoC.QA') +
WSCHEMA(TOPIC) +
REPLACE
DEFINE QALIAS('PoC.QA') +
TARGTYPE(TOPIC) +
TARGET('PoC') +
REPLACE
DEFINE TOPIC('PoC') +
TOPICSTR('pfx/poc/topic') +
REPLACE
|
And this is the result when I execute the commands:
Quote: |
5724-H72 (C) Copyright IBM Corp. 1994, 2018.
Starting MQSC for queue manager QM1.
1 : DEFINE SUB('PoC') +
: TOPICSTR('poc/#') +
: PSPROP(RFH2) +
: DEST('PoC.QA') +
: WSCHEMA(TOPIC) +
: REPLACE
AMQ8470E: The object PoC.QA is not a valid subscription destination.
:
2 : DEFINE QALIAS('PoC.QA') +
: TARGTYPE(TOPIC) +
: TARGET('PoC') +
: REPLACE
AMQ8006I: IBM MQ queue created.
:
3 : DEFINE TOPIC('PoC') +
: TOPICSTR('pfx/poc/topic') +
: REPLACE
AMQ8690I: IBM MQ topic created.
3 MQSC commands read.
No commands have a syntax error.
One valid MQSC command could not be processed.
|
_________________ Regards
Hubert |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Mon Aug 19, 2019 7:10 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
In Addition:
When I Change the TARGTYPE to QUEUE:
Quote: |
DEFINE SUB('PoC') +
TOPICSTR('poc/#') +
PSPROP(RFH2) +
DEST('PoC.QA') +
WSCHEMA(TOPIC) +
REPLACE
DEFINE QALIAS('PoC.QA') +
TARGTYPE(QUEUE) +
TARGET('PoC') +
REPLACE
DEFINE TOPIC('PoC') +
TOPICSTR('pfx/poc/topic2') +
REPLACE
|
it looks different
Quote: |
5724-H72 (C) Copyright IBM Corp. 1994, 2018.
Starting MQSC for queue manager QM1.
1 : DEFINE SUB('PoC') +
: TOPICSTR('poc/#') +
: PSPROP(RFH2) +
: DEST('PoC.QA') +
: WSCHEMA(TOPIC) +
: REPLACE
AMQ8094I: IBM MQ subscription created.
:
2 : DEFINE QALIAS('PoC.QA') +
: TARGTYPE(QUEUE) +
: TARGET('PoC') +
: REPLACE
AMQ8006I: IBM MQ queue created.
:
3 : DEFINE TOPIC('PoC') +
: TOPICSTR('pfx/poc/topic2') +
: REPLACE
AMQ8690I: IBM MQ topic created.
3 MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.
|
_________________ Regards
Hubert |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Aug 19, 2019 7:26 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9472 Location: US: west coast, almost. Otherwise, enroute.
|
HubertKleinmanns wrote: |
... it looks different |
"looks different" is not a technical observation. It's akin to "it doesn't work." _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Aug 20, 2019 5:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
HubertKleinmanns wrote: |
I was able to subscribe to "userdata" and put the message to a queue alias, but I was not able, to put it to a topic alias. I got the error
Quote: |
AMQ8470E: The object <Name of the alias> is not a valid subscription destination. |
|
Sorry, looks like you will need to have a program that republishes.
If you can determine where the message came from by looking at it on the queue, one subscription queue for all clients may be enough. You will have to consume the message and republish it to the new topic...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Wed Aug 21, 2019 12:42 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
bruce2359 wrote: |
HubertKleinmanns wrote: |
... it looks different |
"looks different" is not a technical observation. It's akin to "it doesn't work." |
I meant:
- Defining a subscription to a topic alias does not work (error "... is not a valid subscription destination.").
- Defining a subscription to a queue alias does work.
 _________________ Regards
Hubert |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Wed Aug 21, 2019 12:49 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
fjb_saper wrote: |
... Sorry, looks like you will need to have a program that republishes.
If you can determine where the message came from by looking at it on the queue, one subscription queue for all clients may be enough. You will have to consume the message and republish it to the new topic...  |
I fear, you are right .
Alternatively I have to convince my employer and the customers, to use a common prefix for all publications.
Thanks all for the help, ideas and arguments. _________________ Regards
Hubert |
|
Back to top |
|
 |
|