Author |
Message
|
learneai |
Posted: Wed Feb 23, 2011 12:49 am Post subject: Publish Subscribe with MB6.1 and MQ7 |
|
|
Newbie
Joined: 23 Feb 2011 Posts: 2
|
Hi Gurus
Our env
MB6.1 with fixpack 7 and MQ 7
We would be migrating to MB 7 in six months of time. But currently we are in need of implementing a pub sub mechanism which uses the MQ7 pub sub from message broker 6.1. The need is because in MB7 broker does not have the pub sub engine of its own. Instead uses MQ pub sub for it. Can anybody let me know if same can be implemented in MB6.1.
Any pointers would help.
Thanks. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 23, 2011 4:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There are configuration options with later builds of 6.1 that will allow you to disable the broker's pub/sub engine in favor of the qmgr's pub/sub engine.
Should be documented in the infoCenter under the discussions of pub/sub... |
|
Back to top |
|
 |
Esa |
Posted: Wed Feb 23, 2011 11:48 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
As far as I know you can use MQ7 pub/sub in MB 6.1 like this:
- publish with an MOutput that has the queue name property pointing to an alias with a topic target.
- create managed subscriptions with MQ admin tools and get the messages with MQInput nodes.
Works with MB V 7 as well. Should be enough if you only need pub/sub for setting up message routing and do not need to make use of the more advanced features like temporary subscriptions. Some MQ 7 pub/sub feature like retained publications are not (yet) supported in MB 7. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Feb 23, 2011 12:34 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
You may need to set the QMGR PSMODE so that Pub/Sub works in the right way.
This is a WMQ function NOT broker.
The
Code: |
ALTER QMGR PSMODE(...)
|
Is the command to use.
The WMQ docs describe the various options.
You may have to experiment a bit to make it all work together properly. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
learneai |
Posted: Fri Feb 25, 2011 3:25 am Post subject: |
|
|
Newbie
Joined: 23 Feb 2011 Posts: 2
|
Esa, you are correct. I tried same thing after posting the question on the forum and it worked.
But once we migrate to MB 7 these topic objects and alias queue become useless.
From MB7 we can directly publish to the subscription objects without creating a topic object in mq. This can be achieved by using the Publication Node.
Now we also need to note that creating Topic object at run time using PCF command is also not possible as MQCMD_CREATE_TOPIC is not a valid PCF command in MB6.1. |
|
Back to top |
|
 |
dilse |
Posted: Mon Mar 21, 2011 5:50 am Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
Like the original poster, I am trying to get WMB 6.1 work with WMQ 7. As part of this, I had the WMB 6.1 Pub Sub engine disabled to make the Queue manager as the Pub SUb engine. But when I am trying to Publish from a flow that has a Publication node to publish, I am getting the following exception.
Quote: |
BIP7034E: Publish/Subscribe support has been disabled. |
which indicates that I cannot use a Publication node in the flow when I disable the Broker's Pub Sub engine.
How can you Publish from the Broker without using a Publication node? Appreciate your thoughts. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Mar 21, 2011 6:00 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
I do not understand you when you say:
dilse wrote: |
I am trying to get WMB 6.1 work with WMQ 7. |
Why not upgrade to WMB 7? WMB 7 works wonderfully with WMQ 7. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
dilse |
Posted: Mon Mar 21, 2011 6:13 am Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
I should have said that I am trying to get the Publish Subscribe working using WMB 6.1 message flow with WMQ7.
Quote: |
Why not upgrade to WMB 7? WMB 7 works wonderfully with WMQ 7. |
I know that WMB 7 works with WMQ 7 wonderfully but this is how environment is. I have to make it work with how it is as the upgrade is not going to happen soon.
Thanks. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Mar 21, 2011 6:25 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
you should be able to use mqoutput to write to a qalias that resolves to a topic? |
|
Back to top |
|
 |
dilse |
Posted: Mon Mar 21, 2011 7:28 am Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
Thanks Jeff. Is this(Q alias that resolves to a topic) the only option to publish from WMB 6.1 flow? Also do I have to disable the WMB Pub Sub engine to use the Alias Queue that resolves to a Topic on the Queue manager? |
|
Back to top |
|
 |
dilse |
Posted: Mon Mar 21, 2011 10:48 am Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Mar 21, 2011 10:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
dilse wrote: |
Any thoughts? |
Just set the RFH2 as usual and send to the publish node. Make sure you have authorization for pub/sub and SYSTEM.BROKER.DEFAULT.STREAM.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Mar 21, 2011 11:33 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
What's possible and what is practical are very different. Avoiding the inevitible is a source of great frustration. Trying to make a shortcut sometimes will cause you to take the long way around anyway. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
dilse |
Posted: Mon Mar 21, 2011 12:02 pm Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
Thanks fjb_saper. You meant Publication node right?
Quote: |
Just set the RFH2 as usual and send to the publish node |
I did this initially but I was getting
Quote: |
BIP7034E: Publish/Subscribe support has been disabled. |
|
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Mar 21, 2011 12:59 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
dilse wrote: |
Thanks fjb_saper. You meant Publication node right?
Quote: |
Just set the RFH2 as usual and send to the publish node |
I did this initially but I was getting
Quote: |
BIP7034E: Publish/Subscribe support has been disabled. |
|
Did you make sure the psmode for the broker qmgr showed (enabled)?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|