SlideShare a Scribd company logo
1 of 48
Download to read offline
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1.0.1
© Copyright IBM Corporation 2008
Introduction to IBM WebSphere MQ
publish/subscribe
© Copyright IBM Corporation 2008
Unit objectives
After completing this unit, you should be able to:
• Explain how WebSphere MQ supports a publish/subscribe
environment
• Describe how to create the objects required in an MQ
publish/subscribe environment
• Explain the merits of publish/subscribe versus point-to-point
messaging
• Design a publish/subscribe system incorporating multiple
queue managers
• Use utilities to manage and monitor topics, publications, and
subscriptions
© Copyright IBM Corporation 2008
What is publish/subscribe?
• Providers of information
need have no knowledge
of consumers
• Consumers of information
need have no knowledge
of providers
• New providers/consumers can
be added without disruption
Publish/subscribe is a term used to define an
application model in which the provider of
some information is decoupled from the
consumers of that information.
• Providers of information
are called publishers
• Consumers of
information are called
subscribers
© Copyright IBM Corporation 2008
The classic example
• A "feed" provides a continuous flow
of information which is pushed to
interested parties
• Traders consume this information
and use it as a basis for the buying
and selling stock
Traders
Stock
Feed
© Copyright IBM Corporation 2008
Loose-coupling with publish/subscribe
Few-to-many: Research, news tickers
Many-to-many: Prices and quotes
Many-to-few: Orders
Topic
Topic
Topic
© Copyright IBM Corporation 2008
Publications and subscriptions
• Subscribers make subscriptions with the queue
manager to register their interest in information relating
to specific topics.
– They use the MQSUB verb
– Or define using DEFINE SUB command
• Publishers provide information about specific topics by
sending publications to the queue manager
– They use the MQPUT verb
• The queue manager forwards each publication it
receives to all subscribers with a subscription which
matches the associated topic
© Copyright IBM Corporation 2008
Publish/subscribe in IBM WebSphere MQ
Configure
M
onitor
Interface
Create TOPIC objects
Topic status
Display connections
and handles
Configure attributes
Topic Tree
MQSUB
‘Price/Fruit/+’
MQGET
MQOPEN
‘Price/Fruit/Apples’
MQPUT
© Copyright IBM Corporation 2008
Topic strings and topic tree
Price/Fruit/Apples
Price/Fruit/Oranges
Price/Vegetables/Potatoes
Price/Vegetables/Onions
Price
Fruit
Apples Oranges
Vegetables
Potatoes Onions
Topic strings
Topic tree
© Copyright IBM Corporation 2008
Topic objects
• Not necessary for publish/subscribe
• Provide an administrative control point for your topic tree
– Configuration attributes
– Security profiles
– Topic tree isolation
MY.TOPIC.OBJECT
© Copyright IBM Corporation 2008
Base topic object
Price
Fruit
Apples Oranges
Vegetables
Potatoes Onions
SYSTEM.BASE.TOPIC
© Copyright IBM Corporation 2008
Defining a topic object (1 of 2)
Price
Fruit
Apples Oranges
SYSTEM.BASE.TOPIC
Starting MQSC for queue manager TEST1.
DEFINE TOPIC(FRUIT)
TOPICSTR(‘Price/Fruit’) DURSUB(NO)
DISPLAY TOPIC(FRUIT)
AMQ8633: Display topic details.
TOPIC(FRUIT) TYPE(LOCAL)
TOPICSTR(Price/Fruit) DESCR( )
CLUSTER( ) DURSUB(NO)
PUB(ASPARENT) SUB(ASPARENT)
DEFPSIST(ASPARENT) DEFPRTY(ASPARENT)
DEFPRESP(ASPARENT) ALTDATE(2008-02-26)
ALTTIME(15.05.22) PMSGDLV(ASPARENT)
NPMSGDLV(ASPARENT) PUBSCOPE(ASPARENT)
SUBSCOPE(ASPARENT) PROXYSUB(FIRSTUSE)
WILDCARD(PASSTHRU) MDURMDL( )
MNDURMDL( )
DEFINE TOPIC
ALTER TOPIC
DELETE TOPIC
DISPLAY TOPIC
FRUIT
Note: the next screen provides a
closer view of this command prompt.
© Copyright IBM Corporation 2008
Defining a topic object (2 of 2)
Starting MQSC for queue manager TEST1.
DEFINE TOPIC(FRUIT)
TOPICSTR(‘Price/Fruit’) DURSUB(NO)
DISPLAY TOPIC(FRUIT)
AMQ8633: Display topic details.
TOPIC(FRUIT) TYPE(LOCAL)
TOPICSTR(Price/Fruit) DESCR( )
CLUSTER( ) DURSUB(NO)
PUB(ASPARENT) SUB(ASPARENT)
DEFPSIST(ASPARENT) DEFPRTY(ASPARENT)
DEFPRESP(ASPARENT) ALTDATE(2008-02-26)
ALTTIME(15.05.22) PMSGDLV(ASPARENT)
NPMSGDLV(ASPARENT) PUBSCOPE(ASPARENT)
SUBSCOPE(ASPARENT) PROXYSUB(FIRSTUSE)
WILDCARD(PASSTHRU) MDURMDL( )
MNDURMDL( )
© Copyright IBM Corporation 2008
DEFINE TOPIC command
DEFINE TOPIC(FRUIT)
TOPICSTR(‘Price/Fruit’) DURSUB(NO)
DISPLAY TOPIC(FRUIT)
AMQ8633: Display topic details.
TOPIC(FRUIT) TYPE(LOCAL)
TOPICSTR(Price/Fruit) DESCR( )
CLUSTER( ) DURSUB(NO)
PUB(ASPARENT) SUB(ASPARENT)
DEFPSIST(ASPARENT) DEFPRTY(ASPARENT)
DEFPRESP(ASPARENT) ALTDATE(2008-02-26)
ALTTIME(15.05.22) PMSGDLV(ASPARENT)
NPMSGDLV(ASPARENT) PUBSCOPE(ASPARENT)
SUBSCOPE(ASPARENT) PROXYSUB(FIRSTUSE)
WILDCARD(PASSTHRU) MDURMDL( )
MNDURMDL( )
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (1
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (2
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (3
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (4
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (5
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (6
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (7
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (8
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (9
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (10
of 11)
© Copyright IBM Corporation 2008
Defining a topic using IBM WebSphere MQ Explorer (11
of 11)
© Copyright IBM Corporation 2008
Resolving ASPARENT
Price
Fruit
Apples Oranges
Starting MQSC for queue manager TEST1.
DIS TPSTATUS(‘Price/Fruit’)
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit) ADMIN(FRUIT)
MDURMDL(SYSTEM.DURABLE.MODEL.QUEUE)
MNDURMDL(SYSTEM.NDURABLE.MODEL.QUEUE)
DEFPSIST(NO) DEFPRTY(0)
DEFPRESP(SYNC) DURSUB(NO)
PUB(ENABLED) SUB(ENABLED)
PMSGDLV(ALLDU NPMSGDLV(ALLAVAIL)
RETAINED(NO) PUBCOUNT(0)
SUBCOUNT(0) PUBSCOPE(ALL)
SUBSCOPE(ALL)
DISPLAY TPSTATUS
FRUIT
© Copyright IBM Corporation 2008
Using MQ Explorer for topic status (1 of 5)
© Copyright IBM Corporation 2008
Using MQ Explorer for topic status (2 of 5)
© Copyright IBM Corporation 2008
Using MQ Explorer for topic status (3 of 5)
© Copyright IBM Corporation 2008
Using MQ Explorer for topic status (4 of 5)
© Copyright IBM Corporation 2008
Using MQ Explorer for topic status (5 of 5)
© Copyright IBM Corporation 2008
FRUIT
Administration for publishers (1 of 2)
Price
Fruit
Apples Oranges
Starting MQSC for queue manager TEST1.
DIS TPSTATUS('Price/Fruit/+') TYPE(PUB) all
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Oranges) LPUBDATE(2008-02-26)
LPUBTIME(16:50:44)
ACTCONN(414D5143544553543120202020202020832AC44720005E02)
NUMPUBS(3)
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Apples) LPUBDATE(2008-02-26)
LPUBTIME(16:50:37)
ACTCONN(414D5143544553543120202020202020832AC44720007601)
NUMPUBS(1)
TOPIC attributes
DEFPRTY
DEFPSIST
DEFPRESP
PUB
PUBSCOPE
PMSGDLV
NPMSGDLV
MQOPEN
‘Price/Fruit/Apples’
MQPUT
MQOPEN
‘Price/Fruit/Oranges’
MQPUT
MQPUT
MQPUT
Connection ID links to
DISPLAY CONN
Note: the next screen provides a
closer view of this command prompt.
© Copyright IBM Corporation 2008
Administration for publishers (2 of 2)
Starting MQSC for queue manager TEST1.
DIS TPSTATUS('Price/Fruit/+') TYPE(PUB) all
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Oranges) LPUBDATE(2008-02-26)
LPUBTIME(16:50:44)
ACTCONN(414D5143544553543120202020202020832AC44720005E02)
NUMPUBS(3)
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Apples) LPUBDATE(2008-02-26)
LPUBTIME(16:50:37)
ACTCONN(414D5143544553543120202020202020832AC44720007601)
NUMPUBS(1)
© Copyright IBM Corporation 2008
Topic status display for publishers
DIS TPSTATUS('Price/Fruit/+') TYPE(PUB) all
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Oranges) LPUBDATE(2008-02-26)
LPUBTIME(16:50:44)
ACTCONN(414D5143544553543120202020202020832AC44720005E02)
NUMPUBS(3)
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Apples) LPUBDATE(2008-02-26)
LPUBTIME(16:50:37)
ACTCONN(414D5143544553543120202020202020832AC44720007601)
NUMPUBS(1)
DIS CONN(832AC44720007601) TYPE(ALL)
AMQ8276: Display Connection details.
CONN(832AC44720007601)
EXTCONN(414D5143544553543120202020202020)
TYPE(CONN)
APPLTAG(D:q.exe) APPLTYPE(USER)
USERID(hughson)
OBJNAME( ) OBJTYPE(TOPIC)
OPENOPTS(MQOO_OUTPUT,MQOO_FAIL_IF_QUIESCING)
TOPICSTR(Price/Fruit/Apples)
DIS TPSTATUS('Price/Fruit/+') TYPE(PUB) all
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Oranges) LPUBDATE(2008-02-26)
LPUBTIME(16:50:44)
ACTCONN(414D5143544553543120202020202020832AC44720005E02)
NUMPUBS(3)
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Apples) LPUBDATE(2008-02-26)
LPUBTIME(16:50:37)
ACTCONN(414D5143544553543120202020202020832AC44720007601)
NUMPUBS(1)
DIS CONN(832AC44720007601) TYPE(ALL)
AMQ8276: Display Connection details.
CONN(832AC44720007601)
EXTCONN(414D5143544553543120202020202020)
TYPE(CONN)
APPLTAG(D:q.exe) APPLTYPE(USER)
USERID(hughson)
OBJNAME( ) OBJTYPE(TOPIC)
OPENOPTS(MQOO_OUTPUT,MQOO_FAIL_IF_QUIESCING)
TOPICSTR(Price/Fruit/Apples)
© Copyright IBM Corporation 2008
Displaying publisher topic status using MQ Explorer (1
of 3)
© Copyright IBM Corporation 2008
Displaying publisher topic status using MQ Explorer (2
of 3)
© Copyright IBM Corporation 2008
Displaying publisher topic status using MQ Explorer (3
of 3)
© Copyright IBM Corporation 2008
Creating administrative subscriptions
FRUIT
Price
Fruit
Apples Oranges
Starting MQSC for queue manager TEST1.
DEFINE SUB(APPLES.TO.Q1)
TOPICSTR(‘Price/Fruit/Apples’)
DEST(Q1)
MQGET
(Q1)
DEFINE SUB
ALTER SUB
DELETE SUB
DISPLAY SUB
© Copyright IBM Corporation 2008
Monitoring application subscriptions (1 of 2)
Price
Fruit
Apples Oranges
DIS TPSTATUS('Price/Fruit/+') TYPE(SUB) ALL
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Oranges)
SUBID(414D5120544553543120202020202020832AC44720013D07)
SUBUSER(hughson) RESMDATE(2008-02-26)
RESMTIME(18:53:35) LMSGDATE(2008-02-26)
LMSGTIME(18:53:41) DURABLE(NO)
ACTCONN(414D5143544553543120202020202020832AC44720013D05)
NUMMSGS(2) SUBTYPE(API)
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Apples)
SUBID(414D5120544553543120202020202020832AC44720013D07)
SUBUSER(hughson) RESMDATE(2008-02-26)
RESMTIME(18:53:35) LMSGDATE(2008-02-26)
LMSGTIME(18:53:41) DURABLE(NO)
ACTCONN(414D5143544553543120202020202020832AC44720013D05)
NUMMSGS(2) SUBTYPE(API)
MQSUB
‘Price/Fruit/+’
MQGET
Connection ID links to
DISPLAY CONN
Subscription ID links to
DISPLAY SBSTATUS
and
DISPLAY SUB
TOPIC attributes
DURSUB
SUB
SUBSCOPE
PROXYSUB
WILDCARD
FRUIT
Note: the next screen provides a
closer view of this command prompt.
© Copyright IBM Corporation 2008
Monitoring application subscriptions (2 of 2)
DIS TPSTATUS('Price/Fruit/+') TYPE(SUB) ALL
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Oranges)
SUBID(414D5120544553543120202020202020832AC44720013D07)
SUBUSER(hughson) RESMDATE(2008-02-26)
RESMTIME(18:53:35) LMSGDATE(2008-02-26)
LMSGTIME(18:53:41) DURABLE(NO)
ACTCONN(414D5143544553543120202020202020832AC44720013D05)
NUMMSGS(2) SUBTYPE(API)
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Apples)
SUBID(414D5120544553543120202020202020832AC44720013D07)
SUBUSER(hughson) RESMDATE(2008-02-26)
RESMTIME(18:53:35) LMSGDATE(2008-02-26)
LMSGTIME(18:53:41) DURABLE(NO)
ACTCONN(414D5143544553543120202020202020832AC44720013D05)
NUMMSGS(2) SUBTYPE(API)
© Copyright IBM Corporation 2008
Display subscriber topic status (1 of 3)
DIS TPSTATUS('Price/Fruit/+') TYPE(SUB) ALL
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Oranges)
SUBID(414D5120544553543120202020202020832AC44720013D07)
SUBUSER(hughson) RESMDATE(2008-02-26)
RESMTIME(18:53:35) LMSGDATE(2008-02-26)
LMSGTIME(18:53:41) DURABLE(NO)
ACTCONN(414D5143544553543120202020202020832AC44720013D05)
NUMMSGS(2) SUBTYPE(API)
AMQ8754: Display topic status details.
TOPICSTR(Price/Fruit/Apples)
SUBID(414D5120544553543120202020202020832AC44720013D07)
SUBUSER(hughson) RESMDATE(2008-02-26)
RESMTIME(18:53:35) LMSGDATE(2008-02-26)
LMSGTIME(18:53:41) DURABLE(NO)
ACTCONN(414D5143544553543120202020202020832AC44720013D05)
NUMMSGS(2) SUBTYPE(API)
© Copyright IBM Corporation 2008
DIS CONN(832AC44720013D05) TYPE(ALL)
AMQ8276: Display Connection details.
CONN(832AC44720016401)
EXTCONN(414D5143544553543120202020202020)
TYPE(CONN)
APPLTAG(D:q.exe) APPLTYPE(USER)
USERID(hughson)
OBJNAME(Q1) OBJTYPE(QUEUE)
OPENOPTS(MQOO_INPUT_SHARED,MQOO_FAIL_IF_QUIESCING)
OBJNAME( ) OBJTYPE(TOPIC)
DEST(Q1) DESTQMGR(TEST1)
SUBNAME(Fruit Prices)
SUBID(414D5120544553543120202020202020832AC44720016403)
TOPICSTR(Price/Fruit/+)
Display subscriber topic status (2 of 3)
© Copyright IBM Corporation 2008
DIS SBSTATUS SUBID(414D5120544553543120202020202020832AC44720013D07)
AMQ8099: WebSphere MQ subscription status inquired.
SUB(Fruit Prices)
SUBID(414D5120544553543120202020202020832AC44720013D07)
SUBUSER(hughson) RESMDATE(2008-02-26)
RESMTIME(19:10:07) LMSGDATE(2008-02-26)
LMSGTIME(19:10:28)
ACTCONN(414D5143544553543120202020202020832AC44720013D05)
DURABLE(NO) NUMMSGS(5)
SUBTYPE(API)
Display subscriber topic status (3 of 3)
© Copyright IBM Corporation 2008
Subscription information using MQ Explorer (1 of 3)
© Copyright IBM Corporation 2008
Subscription information using MQ Explorer (2 of 3)
© Copyright IBM Corporation 2008
Subscription information using MQ Explorer (3 of 3)
© Copyright IBM Corporation 2008
Checkpoint questions
1. True or false: A subscriber is an application that can only
make one subscription at a time to a topic on a particular
queue manager.
2. What are the two ways that a subscription is made by an
application?
3. In a TOPIC definition, what does the value ASPARENT
mean?
4. True or false: All values of a TOPIC object definition can be
altered using the ALTER TOPIC command.
5. What is the command used to show details of the current
publishers on a topic string?
© Copyright IBM Corporation 2008
Checkpoint solutions
1. True or false: A subscriber is an application that can only make one
subscription at a time to a topic on a particular queue manager.
– False, an application can make multiple subscriptions to the queue
manager for different topics
2. What are the two ways that a subscription is made by an application?
– DEFINE SUBSCRIPTION command, and MQSUB verb
3. In a TOPIC definition, what does the value ASPARENT mean?
– ASPARENT means that the value is based on the setting of the closest
parent administrative topic object in the topic tree.
4. True or false: All values of a TOPIC object definition can be altered
using the ALTER TOPIC command.
– False. The TOPICSTR value cannot be altered. The TOPIC object needs to
be deleted and redefined if this value needs to be changed.
5. What is the command used to show details of the current publishers
on a topic string?
– DISPLAY TPSTATUS TYPE(PUB)
© Copyright IBM Corporation 2008
Unit summary
Having completed this unit, you should be able to:
• Explain how WebSphere MQ supports a publish/subscribe
environment
• Describe how to create the objects required in an MQ
publish/subscribe environment
• Explain the merits of publish/subscribe versus point-to-point
messaging
• Design a publish/subscribe system incorporating multiple
queue managers
• Use utilities to manage and monitor topics, publications, and
subscriptions

More Related Content

Similar to WM2011G19.pdf

The Flink - Apache Bigtop integration
The Flink - Apache Bigtop integrationThe Flink - Apache Bigtop integration
The Flink - Apache Bigtop integrationMárton Balassi
 
Intro to Neo4j Ops Manager (NOM)
Intro to Neo4j Ops Manager (NOM)Intro to Neo4j Ops Manager (NOM)
Intro to Neo4j Ops Manager (NOM)Neo4j
 
Storage Benchmark Kit
Storage Benchmark KitStorage Benchmark Kit
Storage Benchmark KitRakesh R
 
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-MonitoringPrinceton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-MonitoringSravan Lingam
 
Auto scaling and dynamic routing for was liberty collectives
Auto scaling and dynamic routing for was liberty collectivesAuto scaling and dynamic routing for was liberty collectives
Auto scaling and dynamic routing for was liberty collectivessflynn073
 
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...GetInData
 
MKT 100Week 6 Assignment{Enter Student Name Here}{Enter Bu.docx
MKT 100Week 6 Assignment{Enter Student Name Here}{Enter Bu.docxMKT 100Week 6 Assignment{Enter Student Name Here}{Enter Bu.docx
MKT 100Week 6 Assignment{Enter Student Name Here}{Enter Bu.docxkendalfarrier
 
ProteMac KeyBag UserGuide
ProteMac KeyBag UserGuideProteMac KeyBag UserGuide
ProteMac KeyBag UserGuideProteMac
 
Orion context broker webminar 2013 06-19
Orion context broker webminar 2013 06-19Orion context broker webminar 2013 06-19
Orion context broker webminar 2013 06-19Fermin Galan
 
MuleSoft Meetup Mumbai Mule 4 Presentation Slide
MuleSoft Meetup Mumbai Mule 4 Presentation SlideMuleSoft Meetup Mumbai Mule 4 Presentation Slide
MuleSoft Meetup Mumbai Mule 4 Presentation SlideManish Kumar Yadav
 
MySQL Performance Schema : fossasia
MySQL Performance Schema : fossasiaMySQL Performance Schema : fossasia
MySQL Performance Schema : fossasiaMayank Prasad
 
MySQL Performance Schema, Open Source India, 2015
MySQL Performance Schema, Open Source India, 2015MySQL Performance Schema, Open Source India, 2015
MySQL Performance Schema, Open Source India, 2015Mayank Prasad
 
The Experience of Java on Kubernetes with Microservices from HackFest
The Experience of Java on Kubernetes with Microservices from HackFestThe Experience of Java on Kubernetes with Microservices from HackFest
The Experience of Java on Kubernetes with Microservices from HackFestYoshio Terada
 
Orion context broker webminar 2013 05-30
Orion context broker webminar 2013 05-30Orion context broker webminar 2013 05-30
Orion context broker webminar 2013 05-30Fermin Galan
 
CA Spectrum® Just Keeps Getting Better and Better
CA Spectrum® Just Keeps Getting Better and BetterCA Spectrum® Just Keeps Getting Better and Better
CA Spectrum® Just Keeps Getting Better and BetterCA Technologies
 

Similar to WM2011G19.pdf (20)

Pankaj_Joshi_Resume
Pankaj_Joshi_ResumePankaj_Joshi_Resume
Pankaj_Joshi_Resume
 
OMA Lightweight M2M
OMA Lightweight M2M OMA Lightweight M2M
OMA Lightweight M2M
 
The Flink - Apache Bigtop integration
The Flink - Apache Bigtop integrationThe Flink - Apache Bigtop integration
The Flink - Apache Bigtop integration
 
Intro to Neo4j Ops Manager (NOM)
Intro to Neo4j Ops Manager (NOM)Intro to Neo4j Ops Manager (NOM)
Intro to Neo4j Ops Manager (NOM)
 
Storage Benchmark Kit
Storage Benchmark KitStorage Benchmark Kit
Storage Benchmark Kit
 
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-MonitoringPrinceton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
 
Auto scaling and dynamic routing for was liberty collectives
Auto scaling and dynamic routing for was liberty collectivesAuto scaling and dynamic routing for was liberty collectives
Auto scaling and dynamic routing for was liberty collectives
 
Why meteor
Why meteorWhy meteor
Why meteor
 
OMEGAMON XE for Mainframe Networks v5.3 Long presentation
OMEGAMON XE for Mainframe Networks v5.3 Long presentationOMEGAMON XE for Mainframe Networks v5.3 Long presentation
OMEGAMON XE for Mainframe Networks v5.3 Long presentation
 
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
 
MKT 100Week 6 Assignment{Enter Student Name Here}{Enter Bu.docx
MKT 100Week 6 Assignment{Enter Student Name Here}{Enter Bu.docxMKT 100Week 6 Assignment{Enter Student Name Here}{Enter Bu.docx
MKT 100Week 6 Assignment{Enter Student Name Here}{Enter Bu.docx
 
ProteMac KeyBag UserGuide
ProteMac KeyBag UserGuideProteMac KeyBag UserGuide
ProteMac KeyBag UserGuide
 
Orion context broker webminar 2013 06-19
Orion context broker webminar 2013 06-19Orion context broker webminar 2013 06-19
Orion context broker webminar 2013 06-19
 
MuleSoft Meetup Mumbai Mule 4 Presentation Slide
MuleSoft Meetup Mumbai Mule 4 Presentation SlideMuleSoft Meetup Mumbai Mule 4 Presentation Slide
MuleSoft Meetup Mumbai Mule 4 Presentation Slide
 
MySQL Performance Schema : fossasia
MySQL Performance Schema : fossasiaMySQL Performance Schema : fossasia
MySQL Performance Schema : fossasia
 
MySQL Performance Schema, Open Source India, 2015
MySQL Performance Schema, Open Source India, 2015MySQL Performance Schema, Open Source India, 2015
MySQL Performance Schema, Open Source India, 2015
 
The Experience of Java on Kubernetes with Microservices from HackFest
The Experience of Java on Kubernetes with Microservices from HackFestThe Experience of Java on Kubernetes with Microservices from HackFest
The Experience of Java on Kubernetes with Microservices from HackFest
 
Lms31 chapter 1 intro
Lms31 chapter 1 introLms31 chapter 1 intro
Lms31 chapter 1 intro
 
Orion context broker webminar 2013 05-30
Orion context broker webminar 2013 05-30Orion context broker webminar 2013 05-30
Orion context broker webminar 2013 05-30
 
CA Spectrum® Just Keeps Getting Better and Better
CA Spectrum® Just Keeps Getting Better and BetterCA Spectrum® Just Keeps Getting Better and Better
CA Spectrum® Just Keeps Getting Better and Better
 

Recently uploaded

[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypseTomasz Kowalczewski
 
how-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfhow-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfmetbey
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AIAGATSoftware
 
Transformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with LinksTransformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with LinksJinanKordab
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Eraconfluent
 
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdfThe Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdfkalichargn70th171
 
Microsoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMicrosoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMarkus Moeller
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Maxim Salnikov
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024SimonedeGijt
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfSrushith Repakula
 
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAOpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAShane Coughlan
 
From Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIFrom Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIInflectra
 
The Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test AutomationThe Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test AutomationElement34
 
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...CloudMetic
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfWSO2
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Henry Schreiner
 
OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024Shane Coughlan
 
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)Gáspár Nagy
 

Recently uploaded (20)

[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
 
how-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfhow-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdf
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AI
 
Transformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with LinksTransformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with Links
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 
Abortion Clinic In Springs ](+27832195400*)[ 🏥 Safe Abortion Pills in Springs...
Abortion Clinic In Springs ](+27832195400*)[ 🏥 Safe Abortion Pills in Springs...Abortion Clinic In Springs ](+27832195400*)[ 🏥 Safe Abortion Pills in Springs...
Abortion Clinic In Springs ](+27832195400*)[ 🏥 Safe Abortion Pills in Springs...
 
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdfThe Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
 
Microsoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMicrosoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdf
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAOpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
 
From Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIFrom Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST API
 
The Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test AutomationThe Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test Automation
 
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdf
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024
 
OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024
 
Abortion Clinic In Polokwane ](+27832195400*)[ 🏥 Safe Abortion Pills in Polok...
Abortion Clinic In Polokwane ](+27832195400*)[ 🏥 Safe Abortion Pills in Polok...Abortion Clinic In Polokwane ](+27832195400*)[ 🏥 Safe Abortion Pills in Polok...
Abortion Clinic In Polokwane ](+27832195400*)[ 🏥 Safe Abortion Pills in Polok...
 
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
 

WM2011G19.pdf

  • 1. Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1.0.1 © Copyright IBM Corporation 2008 Introduction to IBM WebSphere MQ publish/subscribe
  • 2. © Copyright IBM Corporation 2008 Unit objectives After completing this unit, you should be able to: • Explain how WebSphere MQ supports a publish/subscribe environment • Describe how to create the objects required in an MQ publish/subscribe environment • Explain the merits of publish/subscribe versus point-to-point messaging • Design a publish/subscribe system incorporating multiple queue managers • Use utilities to manage and monitor topics, publications, and subscriptions
  • 3. © Copyright IBM Corporation 2008 What is publish/subscribe? • Providers of information need have no knowledge of consumers • Consumers of information need have no knowledge of providers • New providers/consumers can be added without disruption Publish/subscribe is a term used to define an application model in which the provider of some information is decoupled from the consumers of that information. • Providers of information are called publishers • Consumers of information are called subscribers
  • 4. © Copyright IBM Corporation 2008 The classic example • A "feed" provides a continuous flow of information which is pushed to interested parties • Traders consume this information and use it as a basis for the buying and selling stock Traders Stock Feed
  • 5. © Copyright IBM Corporation 2008 Loose-coupling with publish/subscribe Few-to-many: Research, news tickers Many-to-many: Prices and quotes Many-to-few: Orders Topic Topic Topic
  • 6. © Copyright IBM Corporation 2008 Publications and subscriptions • Subscribers make subscriptions with the queue manager to register their interest in information relating to specific topics. – They use the MQSUB verb – Or define using DEFINE SUB command • Publishers provide information about specific topics by sending publications to the queue manager – They use the MQPUT verb • The queue manager forwards each publication it receives to all subscribers with a subscription which matches the associated topic
  • 7. © Copyright IBM Corporation 2008 Publish/subscribe in IBM WebSphere MQ Configure M onitor Interface Create TOPIC objects Topic status Display connections and handles Configure attributes Topic Tree MQSUB ‘Price/Fruit/+’ MQGET MQOPEN ‘Price/Fruit/Apples’ MQPUT
  • 8. © Copyright IBM Corporation 2008 Topic strings and topic tree Price/Fruit/Apples Price/Fruit/Oranges Price/Vegetables/Potatoes Price/Vegetables/Onions Price Fruit Apples Oranges Vegetables Potatoes Onions Topic strings Topic tree
  • 9. © Copyright IBM Corporation 2008 Topic objects • Not necessary for publish/subscribe • Provide an administrative control point for your topic tree – Configuration attributes – Security profiles – Topic tree isolation MY.TOPIC.OBJECT
  • 10. © Copyright IBM Corporation 2008 Base topic object Price Fruit Apples Oranges Vegetables Potatoes Onions SYSTEM.BASE.TOPIC
  • 11. © Copyright IBM Corporation 2008 Defining a topic object (1 of 2) Price Fruit Apples Oranges SYSTEM.BASE.TOPIC Starting MQSC for queue manager TEST1. DEFINE TOPIC(FRUIT) TOPICSTR(‘Price/Fruit’) DURSUB(NO) DISPLAY TOPIC(FRUIT) AMQ8633: Display topic details. TOPIC(FRUIT) TYPE(LOCAL) TOPICSTR(Price/Fruit) DESCR( ) CLUSTER( ) DURSUB(NO) PUB(ASPARENT) SUB(ASPARENT) DEFPSIST(ASPARENT) DEFPRTY(ASPARENT) DEFPRESP(ASPARENT) ALTDATE(2008-02-26) ALTTIME(15.05.22) PMSGDLV(ASPARENT) NPMSGDLV(ASPARENT) PUBSCOPE(ASPARENT) SUBSCOPE(ASPARENT) PROXYSUB(FIRSTUSE) WILDCARD(PASSTHRU) MDURMDL( ) MNDURMDL( ) DEFINE TOPIC ALTER TOPIC DELETE TOPIC DISPLAY TOPIC FRUIT Note: the next screen provides a closer view of this command prompt.
  • 12. © Copyright IBM Corporation 2008 Defining a topic object (2 of 2) Starting MQSC for queue manager TEST1. DEFINE TOPIC(FRUIT) TOPICSTR(‘Price/Fruit’) DURSUB(NO) DISPLAY TOPIC(FRUIT) AMQ8633: Display topic details. TOPIC(FRUIT) TYPE(LOCAL) TOPICSTR(Price/Fruit) DESCR( ) CLUSTER( ) DURSUB(NO) PUB(ASPARENT) SUB(ASPARENT) DEFPSIST(ASPARENT) DEFPRTY(ASPARENT) DEFPRESP(ASPARENT) ALTDATE(2008-02-26) ALTTIME(15.05.22) PMSGDLV(ASPARENT) NPMSGDLV(ASPARENT) PUBSCOPE(ASPARENT) SUBSCOPE(ASPARENT) PROXYSUB(FIRSTUSE) WILDCARD(PASSTHRU) MDURMDL( ) MNDURMDL( )
  • 13. © Copyright IBM Corporation 2008 DEFINE TOPIC command DEFINE TOPIC(FRUIT) TOPICSTR(‘Price/Fruit’) DURSUB(NO) DISPLAY TOPIC(FRUIT) AMQ8633: Display topic details. TOPIC(FRUIT) TYPE(LOCAL) TOPICSTR(Price/Fruit) DESCR( ) CLUSTER( ) DURSUB(NO) PUB(ASPARENT) SUB(ASPARENT) DEFPSIST(ASPARENT) DEFPRTY(ASPARENT) DEFPRESP(ASPARENT) ALTDATE(2008-02-26) ALTTIME(15.05.22) PMSGDLV(ASPARENT) NPMSGDLV(ASPARENT) PUBSCOPE(ASPARENT) SUBSCOPE(ASPARENT) PROXYSUB(FIRSTUSE) WILDCARD(PASSTHRU) MDURMDL( ) MNDURMDL( )
  • 14. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (1 of 11)
  • 15. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (2 of 11)
  • 16. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (3 of 11)
  • 17. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (4 of 11)
  • 18. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (5 of 11)
  • 19. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (6 of 11)
  • 20. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (7 of 11)
  • 21. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (8 of 11)
  • 22. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (9 of 11)
  • 23. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (10 of 11)
  • 24. © Copyright IBM Corporation 2008 Defining a topic using IBM WebSphere MQ Explorer (11 of 11)
  • 25. © Copyright IBM Corporation 2008 Resolving ASPARENT Price Fruit Apples Oranges Starting MQSC for queue manager TEST1. DIS TPSTATUS(‘Price/Fruit’) AMQ8754: Display topic status details. TOPICSTR(Price/Fruit) ADMIN(FRUIT) MDURMDL(SYSTEM.DURABLE.MODEL.QUEUE) MNDURMDL(SYSTEM.NDURABLE.MODEL.QUEUE) DEFPSIST(NO) DEFPRTY(0) DEFPRESP(SYNC) DURSUB(NO) PUB(ENABLED) SUB(ENABLED) PMSGDLV(ALLDU NPMSGDLV(ALLAVAIL) RETAINED(NO) PUBCOUNT(0) SUBCOUNT(0) PUBSCOPE(ALL) SUBSCOPE(ALL) DISPLAY TPSTATUS FRUIT
  • 26. © Copyright IBM Corporation 2008 Using MQ Explorer for topic status (1 of 5)
  • 27. © Copyright IBM Corporation 2008 Using MQ Explorer for topic status (2 of 5)
  • 28. © Copyright IBM Corporation 2008 Using MQ Explorer for topic status (3 of 5)
  • 29. © Copyright IBM Corporation 2008 Using MQ Explorer for topic status (4 of 5)
  • 30. © Copyright IBM Corporation 2008 Using MQ Explorer for topic status (5 of 5)
  • 31. © Copyright IBM Corporation 2008 FRUIT Administration for publishers (1 of 2) Price Fruit Apples Oranges Starting MQSC for queue manager TEST1. DIS TPSTATUS('Price/Fruit/+') TYPE(PUB) all AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Oranges) LPUBDATE(2008-02-26) LPUBTIME(16:50:44) ACTCONN(414D5143544553543120202020202020832AC44720005E02) NUMPUBS(3) AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Apples) LPUBDATE(2008-02-26) LPUBTIME(16:50:37) ACTCONN(414D5143544553543120202020202020832AC44720007601) NUMPUBS(1) TOPIC attributes DEFPRTY DEFPSIST DEFPRESP PUB PUBSCOPE PMSGDLV NPMSGDLV MQOPEN ‘Price/Fruit/Apples’ MQPUT MQOPEN ‘Price/Fruit/Oranges’ MQPUT MQPUT MQPUT Connection ID links to DISPLAY CONN Note: the next screen provides a closer view of this command prompt.
  • 32. © Copyright IBM Corporation 2008 Administration for publishers (2 of 2) Starting MQSC for queue manager TEST1. DIS TPSTATUS('Price/Fruit/+') TYPE(PUB) all AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Oranges) LPUBDATE(2008-02-26) LPUBTIME(16:50:44) ACTCONN(414D5143544553543120202020202020832AC44720005E02) NUMPUBS(3) AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Apples) LPUBDATE(2008-02-26) LPUBTIME(16:50:37) ACTCONN(414D5143544553543120202020202020832AC44720007601) NUMPUBS(1)
  • 33. © Copyright IBM Corporation 2008 Topic status display for publishers DIS TPSTATUS('Price/Fruit/+') TYPE(PUB) all AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Oranges) LPUBDATE(2008-02-26) LPUBTIME(16:50:44) ACTCONN(414D5143544553543120202020202020832AC44720005E02) NUMPUBS(3) AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Apples) LPUBDATE(2008-02-26) LPUBTIME(16:50:37) ACTCONN(414D5143544553543120202020202020832AC44720007601) NUMPUBS(1) DIS CONN(832AC44720007601) TYPE(ALL) AMQ8276: Display Connection details. CONN(832AC44720007601) EXTCONN(414D5143544553543120202020202020) TYPE(CONN) APPLTAG(D:q.exe) APPLTYPE(USER) USERID(hughson) OBJNAME( ) OBJTYPE(TOPIC) OPENOPTS(MQOO_OUTPUT,MQOO_FAIL_IF_QUIESCING) TOPICSTR(Price/Fruit/Apples) DIS TPSTATUS('Price/Fruit/+') TYPE(PUB) all AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Oranges) LPUBDATE(2008-02-26) LPUBTIME(16:50:44) ACTCONN(414D5143544553543120202020202020832AC44720005E02) NUMPUBS(3) AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Apples) LPUBDATE(2008-02-26) LPUBTIME(16:50:37) ACTCONN(414D5143544553543120202020202020832AC44720007601) NUMPUBS(1) DIS CONN(832AC44720007601) TYPE(ALL) AMQ8276: Display Connection details. CONN(832AC44720007601) EXTCONN(414D5143544553543120202020202020) TYPE(CONN) APPLTAG(D:q.exe) APPLTYPE(USER) USERID(hughson) OBJNAME( ) OBJTYPE(TOPIC) OPENOPTS(MQOO_OUTPUT,MQOO_FAIL_IF_QUIESCING) TOPICSTR(Price/Fruit/Apples)
  • 34. © Copyright IBM Corporation 2008 Displaying publisher topic status using MQ Explorer (1 of 3)
  • 35. © Copyright IBM Corporation 2008 Displaying publisher topic status using MQ Explorer (2 of 3)
  • 36. © Copyright IBM Corporation 2008 Displaying publisher topic status using MQ Explorer (3 of 3)
  • 37. © Copyright IBM Corporation 2008 Creating administrative subscriptions FRUIT Price Fruit Apples Oranges Starting MQSC for queue manager TEST1. DEFINE SUB(APPLES.TO.Q1) TOPICSTR(‘Price/Fruit/Apples’) DEST(Q1) MQGET (Q1) DEFINE SUB ALTER SUB DELETE SUB DISPLAY SUB
  • 38. © Copyright IBM Corporation 2008 Monitoring application subscriptions (1 of 2) Price Fruit Apples Oranges DIS TPSTATUS('Price/Fruit/+') TYPE(SUB) ALL AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Oranges) SUBID(414D5120544553543120202020202020832AC44720013D07) SUBUSER(hughson) RESMDATE(2008-02-26) RESMTIME(18:53:35) LMSGDATE(2008-02-26) LMSGTIME(18:53:41) DURABLE(NO) ACTCONN(414D5143544553543120202020202020832AC44720013D05) NUMMSGS(2) SUBTYPE(API) AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Apples) SUBID(414D5120544553543120202020202020832AC44720013D07) SUBUSER(hughson) RESMDATE(2008-02-26) RESMTIME(18:53:35) LMSGDATE(2008-02-26) LMSGTIME(18:53:41) DURABLE(NO) ACTCONN(414D5143544553543120202020202020832AC44720013D05) NUMMSGS(2) SUBTYPE(API) MQSUB ‘Price/Fruit/+’ MQGET Connection ID links to DISPLAY CONN Subscription ID links to DISPLAY SBSTATUS and DISPLAY SUB TOPIC attributes DURSUB SUB SUBSCOPE PROXYSUB WILDCARD FRUIT Note: the next screen provides a closer view of this command prompt.
  • 39. © Copyright IBM Corporation 2008 Monitoring application subscriptions (2 of 2) DIS TPSTATUS('Price/Fruit/+') TYPE(SUB) ALL AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Oranges) SUBID(414D5120544553543120202020202020832AC44720013D07) SUBUSER(hughson) RESMDATE(2008-02-26) RESMTIME(18:53:35) LMSGDATE(2008-02-26) LMSGTIME(18:53:41) DURABLE(NO) ACTCONN(414D5143544553543120202020202020832AC44720013D05) NUMMSGS(2) SUBTYPE(API) AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Apples) SUBID(414D5120544553543120202020202020832AC44720013D07) SUBUSER(hughson) RESMDATE(2008-02-26) RESMTIME(18:53:35) LMSGDATE(2008-02-26) LMSGTIME(18:53:41) DURABLE(NO) ACTCONN(414D5143544553543120202020202020832AC44720013D05) NUMMSGS(2) SUBTYPE(API)
  • 40. © Copyright IBM Corporation 2008 Display subscriber topic status (1 of 3) DIS TPSTATUS('Price/Fruit/+') TYPE(SUB) ALL AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Oranges) SUBID(414D5120544553543120202020202020832AC44720013D07) SUBUSER(hughson) RESMDATE(2008-02-26) RESMTIME(18:53:35) LMSGDATE(2008-02-26) LMSGTIME(18:53:41) DURABLE(NO) ACTCONN(414D5143544553543120202020202020832AC44720013D05) NUMMSGS(2) SUBTYPE(API) AMQ8754: Display topic status details. TOPICSTR(Price/Fruit/Apples) SUBID(414D5120544553543120202020202020832AC44720013D07) SUBUSER(hughson) RESMDATE(2008-02-26) RESMTIME(18:53:35) LMSGDATE(2008-02-26) LMSGTIME(18:53:41) DURABLE(NO) ACTCONN(414D5143544553543120202020202020832AC44720013D05) NUMMSGS(2) SUBTYPE(API)
  • 41. © Copyright IBM Corporation 2008 DIS CONN(832AC44720013D05) TYPE(ALL) AMQ8276: Display Connection details. CONN(832AC44720016401) EXTCONN(414D5143544553543120202020202020) TYPE(CONN) APPLTAG(D:q.exe) APPLTYPE(USER) USERID(hughson) OBJNAME(Q1) OBJTYPE(QUEUE) OPENOPTS(MQOO_INPUT_SHARED,MQOO_FAIL_IF_QUIESCING) OBJNAME( ) OBJTYPE(TOPIC) DEST(Q1) DESTQMGR(TEST1) SUBNAME(Fruit Prices) SUBID(414D5120544553543120202020202020832AC44720016403) TOPICSTR(Price/Fruit/+) Display subscriber topic status (2 of 3)
  • 42. © Copyright IBM Corporation 2008 DIS SBSTATUS SUBID(414D5120544553543120202020202020832AC44720013D07) AMQ8099: WebSphere MQ subscription status inquired. SUB(Fruit Prices) SUBID(414D5120544553543120202020202020832AC44720013D07) SUBUSER(hughson) RESMDATE(2008-02-26) RESMTIME(19:10:07) LMSGDATE(2008-02-26) LMSGTIME(19:10:28) ACTCONN(414D5143544553543120202020202020832AC44720013D05) DURABLE(NO) NUMMSGS(5) SUBTYPE(API) Display subscriber topic status (3 of 3)
  • 43. © Copyright IBM Corporation 2008 Subscription information using MQ Explorer (1 of 3)
  • 44. © Copyright IBM Corporation 2008 Subscription information using MQ Explorer (2 of 3)
  • 45. © Copyright IBM Corporation 2008 Subscription information using MQ Explorer (3 of 3)
  • 46. © Copyright IBM Corporation 2008 Checkpoint questions 1. True or false: A subscriber is an application that can only make one subscription at a time to a topic on a particular queue manager. 2. What are the two ways that a subscription is made by an application? 3. In a TOPIC definition, what does the value ASPARENT mean? 4. True or false: All values of a TOPIC object definition can be altered using the ALTER TOPIC command. 5. What is the command used to show details of the current publishers on a topic string?
  • 47. © Copyright IBM Corporation 2008 Checkpoint solutions 1. True or false: A subscriber is an application that can only make one subscription at a time to a topic on a particular queue manager. – False, an application can make multiple subscriptions to the queue manager for different topics 2. What are the two ways that a subscription is made by an application? – DEFINE SUBSCRIPTION command, and MQSUB verb 3. In a TOPIC definition, what does the value ASPARENT mean? – ASPARENT means that the value is based on the setting of the closest parent administrative topic object in the topic tree. 4. True or false: All values of a TOPIC object definition can be altered using the ALTER TOPIC command. – False. The TOPICSTR value cannot be altered. The TOPIC object needs to be deleted and redefined if this value needs to be changed. 5. What is the command used to show details of the current publishers on a topic string? – DISPLAY TPSTATUS TYPE(PUB)
  • 48. © Copyright IBM Corporation 2008 Unit summary Having completed this unit, you should be able to: • Explain how WebSphere MQ supports a publish/subscribe environment • Describe how to create the objects required in an MQ publish/subscribe environment • Explain the merits of publish/subscribe versus point-to-point messaging • Design a publish/subscribe system incorporating multiple queue managers • Use utilities to manage and monitor topics, publications, and subscriptions