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 » Publish/Suscribe

Post new topic  Reply to topic
 Publish/Suscribe « View previous topic :: View next topic » 
Author Message
sarathmattam
PostPosted: Mon Sep 29, 2008 5:05 am    Post subject: Publish/Suscribe Reply with quote

Voyager

Joined: 05 Sep 2008
Posts: 94

Hi All,

Am configuring a pub/sub flow. My flow is

MQInput --> Publication , am able to get the subscriptions properly. In this case am sending the publication details via Rfhutil.

I have another flow where the flow is like
MQInput --> Compute node --> Publication . Inthis case am trying to set the topic,comand,queue manager name in the compute node . i have created the MQRFH2 header also. But am gettig an error when it is posting to a queue. I have pasted the code below..

SET OutputRoot = InputRoot;
CREATE NEXTSIBLING OF OutputRoot.MQMD NAME 'MQRFH2';
SET OutputRoot.MQMD.CodedCharSetId = '1028';
SET OutputRoot.MQMD.Format = 'MQHRF2';

SET OutputRoot.MQRFH2.Version = '2';
SET OutputRoot.MQRFH2.Format = '';
SET OutputRoot.MQRFH2.Encoding= '546';
SET OutputRoot.MQRFH2.CodedCharSetId = '437';
SET OutputRoot.MQRFH2.Flags = '0';
SET OutputRoot.MQRFH2.NameValueCCSID = '1028';

SET OutputRoot.MQRFH2.psc.Command = 'Publish';
SET OutputRoot.MQRFH2.psc.Topic = 'Cricket';
SET OutputRoot.MQRFH2.psc.SubPoint = 'Soccer_SubPoint';
SET OutputRoot.MQRFH2.psc.QMgrName = 'Sys_Q_Dev';

Please reply ASAP..

Thanks in advance

Regards,
Sarath
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Sep 29, 2008 9:49 am    Post subject: Re: Publish/Suscribe Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

sarathmattam wrote:
Hi All,

Am configuring a pub/sub flow. My flow is

MQInput --> Publication , am able to get the subscriptions properly. In this case am sending the publication details via Rfhutil.

I have another flow where the flow is like
MQInput --> Compute node --> Publication . Inthis case am trying to set the topic,comand,queue manager name in the compute node . i have created the MQRFH2 header also. But am gettig an error when it is posting to a queue. I have pasted the code below..

SET OutputRoot = InputRoot;
CREATE NEXTSIBLING OF OutputRoot.MQMD NAME 'MQRFH2';
SET OutputRoot.MQMD.CodedCharSetId = '1028';
SET OutputRoot.MQMD.Format = 'MQHRF2';

SET OutputRoot.MQRFH2.Version = '2';
SET OutputRoot.MQRFH2.Format = '';
SET OutputRoot.MQRFH2.Encoding= '546';
SET OutputRoot.MQRFH2.CodedCharSetId = '437';
SET OutputRoot.MQRFH2.Flags = '0';
SET OutputRoot.MQRFH2.NameValueCCSID = '1028';

SET OutputRoot.MQRFH2.psc.Command = 'Publish';
SET OutputRoot.MQRFH2.psc.Topic = 'Cricket';
SET OutputRoot.MQRFH2.psc.SubPoint = 'Soccer_SubPoint';
SET OutputRoot.MQRFH2.psc.QMgrName = 'Sys_Q_Dev';

Please reply ASAP..

Thanks in advance

Regards,
Sarath

You need to change a few things...
Code:

      SET OutputRoot = InputRoot;
      CREATE NEXTSIBLING OF OutputRoot.MQMD NAME 'MQRFH2';
      SET OutputRoot.MQMD.CodedCharSetId  = '1028';
      SET OutputRoot.MQMD.Format          = 'MQHRF2';
      
      SET OutputRoot.MQRFH2.Version = '2';
      SET OutputRoot.MQRFH2.Format  = InputRoot.MQMD.Format;    
      SET OutputRoot.MQRFH2.Encoding= InputRoot.MQMD.Encoding;
      SET OutputRoot.MQRFH2.CodedCharSetId = InputRoot.MQMD.CodedCharSetId;
      SET OutputRoot.MQRFH2.Flags = '0';
      SET OutputRoot.MQRFH2.NameValueCCSID = '1028';
      
      SET OutputRoot.MQRFH2.psc.Command   = 'Publish';
      SET OutputRoot.MQRFH2.psc.Topic     = 'Cricket';
      SET OutputRoot.MQRFH2.psc.SubPoint  = 'Soccer_SubPoint';


Don't know about the psc.QMgrName as I have never used this. I'd expect that to be taken care of in JMS by the qmgrName in the tcf and on the broker by routing to the correct pub node...??

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rekarm01
PostPosted: Tue Sep 30, 2008 7:35 pm    Post subject: Re: Publish/Suscribe Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

sarathmattan wrote:
... But I am getting an error when it is posting to a queue.

I'm not sure what the error is, since you didn't post it, but you might also want to check whether you're using the correct CodedCharacterSetId (CCSID) in the message header(s):
    '1028': Hebrew Publishing
    '1208': UTF-8

And, unless you're using DOS, you probably never want to specify CCSID='437' for the message body; control characters or non-ASCII characters may not convert the way you expect. It's more likely you want one of these:
    '367': US ASCII (7-bit)
    '819': ISO 8859-1 (8-bit)
    '1208': UTF-8

... or maybe one of these: http://www-03.ibm.com/systems/i/software/globalization/codepages.html

cheers,
Back to top
View user's profile Send private message
rajmq
PostPosted: Thu Oct 02, 2008 1:57 am    Post subject: Reply with quote

Partisan

Joined: 29 Sep 2002
Posts: 331
Location: USA

What is the error message ?
_________________
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified System Administrator - WebSphere Business Integration Message Broker V6.0
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 02, 2008 5:54 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

OBVIOUS:
Check if SET OutputRoot.MQRFH2.NameValueCCSID = '1028'; is among the few valid CCSIDs for nameValue pairs. I would expect that you need to modify that to :
SET OutputRoot.MQRFH2.NameValueCCSID = '1208';

Thanks to rekarm01 for pointing it out.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Publish/Suscribe
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.