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 » IBM MQ API Support » Publish to a remote queue manager

Post new topic  Reply to topic
 Publish to a remote queue manager « View previous topic :: View next topic » 
Author Message
rikardo.miguel
PostPosted: Wed Oct 31, 2018 2:42 pm    Post subject: Publish to a remote queue manager Reply with quote

Newbie

Joined: 31 Oct 2018
Posts: 4

Hi,
How can i publish to a remote queue manager on IIB without jms?

If i use a queue alias the message is going allways to the root of topic because i cannot select the topic string.

Any idea?
Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 31, 2018 8:26 pm    Post subject: Re: Publish to a remote queue manager Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

rikardo.miguel wrote:
Hi,
How can i publish to a remote queue manager on IIB without jms?

If i use a queue alias the message is going allways to the root of topic because i cannot select the topic string.

Any idea?
Thanks

No but you can create a topic object with the corresponding topic string and reference that topic object in the alias queue.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rikardo.miguel
PostPosted: Thu Nov 01, 2018 10:02 am    Post subject: Re: Publish to a remote queue manager Reply with quote

Newbie

Joined: 31 Oct 2018
Posts: 4

fjb_saper wrote:

No but you can create a topic object with the corresponding topic string and reference that topic object in the alias queue.


But if i configure the alias queue to send the messages to the topic what will happen is that the messages will arrive to the root of topic because the queue alias will make a PUT instead of a PUB.

I'm wrong? If so, how can i configure the queue alias to put the message into a specific topic string?

If i have this topic:

define TOPIC(DEPSUB1) TOPICSTR('DEPARTMENT/A/SUBJECT1')

Should i configure the queue alias with the topic name + topic string? Or just with topic string? like:

DEFINE QALIAS (MY.ALIAS.QUEUE) TARGET (DEPARTMENT/A/SUBJECT1)

Thanks for your help.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Nov 01, 2018 3:21 pm    Post subject: Re: Publish to a remote queue manager Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

rikardo.miguel wrote:
fjb_saper wrote:

No but you can create a topic object with the corresponding topic string and reference that topic object in the alias queue.


But if i configure the alias queue to send the messages to the topic what will happen is that the messages will arrive to the root of topic because the queue alias will make a PUT instead of a PUB.

I'm wrong? If so, how can i configure the queue alias to put the message into a specific topic string?

If i have this topic:

define TOPIC(DEPSUB1) TOPICSTR('DEPARTMENT/A/SUBJECT1')

Should i configure the queue alias with the topic name + topic string? Or just with topic string? like:

DEFINE QALIAS (MY.ALIAS.QUEUE) TARGET (DEPARTMENT/A/SUBJECT1)

Thanks for your help.

The target cannot be a topic string. it has to be a topic object. in your example DEPSUB1.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rikardo.miguel
PostPosted: Thu Nov 01, 2018 3:59 pm    Post subject: Re: Publish to a remote queue manager Reply with quote

Newbie

Joined: 31 Oct 2018
Posts: 4

fjb_saper wrote:
rikardo.miguel wrote:
fjb_saper wrote:

No but you can create a topic object with the corresponding topic string and reference that topic object in the alias queue.


But if i configure the alias queue to send the messages to the topic what will happen is that the messages will arrive to the root of topic because the queue alias will make a PUT instead of a PUB.

I'm wrong? If so, how can i configure the queue alias to put the message into a specific topic string?

If i have this topic:

define TOPIC(DEPSUB1) TOPICSTR('DEPARTMENT/A/SUBJECT1')

Should i configure the queue alias with the topic name + topic string? Or just with topic string? like:

DEFINE QALIAS (MY.ALIAS.QUEUE) TARGET (DEPARTMENT/A/SUBJECT1)

Thanks for your help.

The target cannot be a topic string. it has to be a topic object. in your example DEPSUB1.


Sure, so how can i specify the topic string if i can only set the target to the topic object?

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 02, 2018 3:40 am    Post subject: Re: Publish to a remote queue manager Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

rikardo.miguel wrote:

Sure, so how can i specify the topic string if i can only set the target to the topic object?

Thanks

Duh the topic string published to will be the one you defined on the topic object...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
hughson
PostPosted: Sat Nov 03, 2018 9:15 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

You have a topic defined like this:-
Code:
DEFINE TOPIC(DEPSUB1) TOPICSTR('DEPARTMENT/A/SUBJECT1')

and you want to access it using an alias queue, so you create an alias queue like this:-
Code:
DEFINE QALIAS(MY.ALIAS.QUEUE) TARGTYPE(TOPIC) TARGET(DEPSUB1)

Please note the important TARGTYPE(TOPIC) attribute on this alias queue definition.

Now if an application does an MQPUT to the alias queue MY.ALIAS.QUEUE, it will result in a publish to the topic string 'DEPARTMENT/A/SUBJECT1'

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Publish to a remote queue manager
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.