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 IndexGeneral IBM MQ SupportMQ Pub/Sub - Topic re-routing

Post new topicReply to topic Goto page Previous  1, 2
MQ Pub/Sub - Topic re-routing View previous topic :: View next topic
Author Message
bruce2359
PostPosted: Mon Aug 19, 2019 6:20 am Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8526
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.
_________________
There are two types of people in this world:
1) Those that can extrapolate from incomplete data
Back to top
View user's profile Send private message
HubertKleinmanns
PostPosted: Mon Aug 19, 2019 6:54 am Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 724
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
View user's profile Send private message Visit poster's website
HubertKleinmanns
PostPosted: Mon Aug 19, 2019 7:10 am Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 724
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
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Mon Aug 19, 2019 7:26 am Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8526
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."
_________________
There are two types of people in this world:
1) Those that can extrapolate from incomplete data
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 20, 2019 5:15 am Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20130
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
View user's profile Send private message Send e-mail
HubertKleinmanns
PostPosted: Wed Aug 21, 2019 12:42 am Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 724
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
View user's profile Send private message Visit poster's website
HubertKleinmanns
PostPosted: Wed Aug 21, 2019 12:49 am Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 724
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
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum IndexGeneral IBM MQ SupportMQ Pub/Sub - Topic re-routing
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.