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 » General IBM MQ Support » Distribution List

Post new topic  Reply to topic
 Distribution List « View previous topic :: View next topic » 
Author Message
marcos
PostPosted: Wed Nov 12, 2014 4:16 am    Post subject: Distribution List Reply with quote

Newbie

Joined: 12 Nov 2014
Posts: 3

Hi,

I'm testing some resources of MQ Series 7 to learning and I didn't get test distribution list.

I've tried to follow some docs and tips in internet and none worked.

Environment example:

2 QM: QMA and QMB

3 Queues:
QMA: QL.QMA (Local)
QMB: QL.QMB_A (local)
QMB: QL.QMB_B (Local)

I tested the queues and are ok, I can put and get messages.
My first shot, i created a namelist(QMA) just with the queues names:

DEFINE NAMELIST (QUEUES.DL) NAMES (QL.QMA, QL.QMB_A, QL.QMB_B) DESCR ('DL Test')

I tested with amqsput:

./amqsput QUEUES.DL QMA
target queue is QUEUES.DL
MQOPEN ended with reason code 2085 (that is MQRC UNKNOWN OBJECT NAME, but the object names are OK)
Unable to open queue for output

After that, I saw the definition of the namelist different, and I tried:

DEFINE NAMELIST (QUEUES.DL) NAMES (QL.QMA, QMA, QL.QMB_A, QMB, QL.QMB_B, QMB) DESCR ('DL Test')

Here, the definition are pairs, with <queue> and <queue_mamager>, but doesn't work as well, but the same error.

I've tried just with 1 queue , and I got the same error:

DEFINE NAMELIST (QUEUES.DL) NAMES (QL.QMA) DESCR ('DL Test')
DEFINE NAMELIST (QUEUES.DL) NAMES (QL.QMA, QMA) DESCR ('DL Test')


The queues parameters to support distribution queues is supported and queue manager too(default).

I checked the users authorities for the objects looks like ok (I've tested with mqm).

Some sites was written that Distribution List needs some development, but IBM docs I didn't find nothing.

I know that exist PUB/SUB in MQ, but, I really like to know how Distribution Lists works!!

If someone did Distribution List, please, share with us!

Thanks,

Marcos
Back to top
View user's profile Send private message
tczielke
PostPosted: Wed Nov 12, 2014 4:23 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 941
Location: Illinois, USA

Hi Marcos,

It might be helpful for you to look at the distribution sample program -> http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.dev.doc/q024160_.htm
Back to top
View user's profile Send private message
marcos
PostPosted: Wed Nov 12, 2014 4:37 am    Post subject: Reply with quote

Newbie

Joined: 12 Nov 2014
Posts: 3

tczielke wrote:
Hi Marcos,

It might be helpful for you to look at the distribution sample program -> http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.dev.doc/q024160_.htm


Hi,

Thanks for your reply tczielke!

I saw this sample program, but in this case, there is no need to define a namelist, correct?

Maybe is another way to do that, but, in IBM docs(maybe I understood wrong) that you simply create a namelist and a distribution list was ok and you can perform with mqput mqput1 call.

Do you know whether i can test with namelist?

Thanks again!
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Wed Nov 12, 2014 5:01 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Namelists and Distributions lists are two different concepts. A namelists is just a list of names which may be queues, queue managers, clusters or anything else you might find useful.

A Distribution list is a programmatic construct whereby an application can put to multiple destinations in a single MQPUT call. You can not define a Distribution List administratively. Now, you could write a program to read an Namelist object and construct a Distribution list but you don't get that type of behaviour automatically.

Cheers,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
marcos
PostPosted: Wed Nov 12, 2014 5:14 am    Post subject: Reply with quote

Newbie

Joined: 12 Nov 2014
Posts: 3

PaulClarke wrote:
Namelists and Distributions lists are two different concepts. A namelists is just a list of names which may be queues, queue managers, clusters or anything else you might find useful.

A Distribution list is a programmatic construct whereby an application can put to multiple destinations in a single MQPUT call. You can not define a Distribution List administratively. Now, you could write a program to read an Namelist object and construct a Distribution list but you don't get that type of behaviour automatically.

Cheers,
Paul.


Paul, Thanks Very much!

This is the exact point that I was in doubt!
I thought there were no need to development, now it's clear!!

Thanks !
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Nov 12, 2014 6:16 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

marcos wrote:
PaulClarke wrote:
Namelists and Distributions lists are two different concepts. A namelists is just a list of names which may be queues, queue managers, clusters or anything else you might find useful.

A Distribution list is a programmatic construct whereby an application can put to multiple destinations in a single MQPUT call. You can not define a Distribution List administratively. Now, you could write a program to read an Namelist object and construct a Distribution list but you don't get that type of behaviour automatically.

Cheers,
Paul.


Paul, Thanks Very much!

This is the exact point that I was in doubt!
I thought there were no need to development, now it's clear!!

Thanks !

An alternative to a Distribution List, at least for a small number of queues, is Pub/Sub - search the forum for PeterPotkay's excellent post on 'MirrorQ done as Pub/Sub'.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Distribution List
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.