Posted: Thu Sep 12, 2013 8:59 am Post subject: adding subscriptions
Acolyte
Joined: 27 Jun 2013 Posts: 51
i have written the following code in web sphere message broker version 6.1 for adding subscribers to particular topic. after run this esql code the subscriptions are will not be visible in broker administration under subscriptions. and i think subscribers wil not be created. wil yo give any idea for resolving this
SET OutputRoot.MQMD.Format = 'MQFMT_RF_HEADER_2';
SET OutputRoot.MQRFH2.(MQRFH2.Field)version = 2;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = 'MQSTR';
SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValuCCSID=1208;
SET OutputRoot.MQRFH2.psc.Command ='RegSub';
SET OutputRoot.MQRFH2.psc.Topic = topicname;
SET OutputRoot.MQRFH2.psc.QName = QueueName;
SET OutputRoot.MQRFH2.psc.QMgrName QMGRName;
DECLARE mRFHEADER REFERENCE TO OutputRoot.MQRFH2;
DETACH mRFHEADER;
ATTACH mRFHEADER TO OutputRoot.MQMD AS NEXTSIBLING;
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
I've run into this before with 6.1
What I did was to get the Pub/Sub engine to tell me what the problem was.
Quote:
-- Uncomment this line if you run into problems with the subscription
-- this will send a reply memssage to the *.SUBS.REPLY Queue.
-- RFHUTIL will then help you decode the data in the pscr section.
--
SET OutputRoot.MQMD.MsgType = MQMT_REQUEST;
SET OutputRoot.MQMD.ReplyToQ = 'SERVICE.MONITORING.SUBS.REPLY';
SET OutputRoot.MQMD.ReplyToQMgr = QueueManagerName;
Change the ReplyToQ to one of your own and add this code to your request. _________________ 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.
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