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 » WebSphere Message Broker (ACE) Support » adding subscriptions

Post new topic  Reply to topic
 adding subscriptions « View previous topic :: View next topic » 
Author Message
saddankula
PostPosted: Thu Sep 12, 2013 8:59 am    Post subject: adding subscriptions Reply with quote

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;
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Sep 12, 2013 10:00 pm    Post subject: Reply with quote

Jedi Council

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.
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 » WebSphere Message Broker (ACE) Support » adding subscriptions
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.