I'm working on Pub/Sub with Message Broker 5.0 . I created 2 flows, one for publishing and the other for Subscriptions.
I'm having problems with the Subscription flow, I dont see any subscriptions on the topic in Subscriptions list. Here is what I did and the trace files.
Please take a look at these and help me finding whatz wrong.
Thanks - Raghu.
Notes :
Subscription Flow : I created a message flow to take an input XML message and read the request, q name and subscribe/unsubscribe by writing
the message to 'SYSTEM.BROKER.CONTROL.QUEUE' with MQRFH2 values.
When I run this flow, I dont see any errors in 'Event viewer' and the message is not written to any failed Q's. I dont see the Subscription in Subscription list.
(I didnt try to publish and see). I think the subscription itself is not done.
Here is my Compute Node's ESQL.
Quote:
CREATE COMPUTE MODULE Subscribe1_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
--CALL CopyEntireMessage();
SET OutputRoot.MQMD.Format='MQRFH2';
SET OutputRoot.MQMD.CodedCharSetId=1208;
SET OutputRoot.MQMD.Encoding=546;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format=InputRoot.MQMD.Format;
SET OutputRoot.MQRFH2.(MQRFH2.Field).Encoding=InputRoot.MQMD.Encoding;
SET OutputRoot.MQRFH2.(MQRFH2.Field).CodedCharSetId=InputRoot.MQMD.CodedCharSetId;
SET OutputRoot.MQRFH2.psc.Command='RegSub';
--CASE
--WHEN InputRoot.XML.SubList.Subscriber.Request='Register' WHEN 'RegSub'
--ELSE 'DeRegSub'
--END CASE;
SET OutputRoot.MQRFH2.psc.Topic='A/B/C';
SET OutputRoot.MQRFH2.psc.QMgrName='W900000033347_QM';
SET OutputRoot.MQRFH2.psc.Qname='SUBSCRIBER1';
--SET OutputRoot.MQRFH2.psc.Qname=InputRoot.XML.SubList.Subscriber.Qname;
RETURN TRUE;
END;
CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
END;
I used RFHUtil tool to see how a Publish Message looks like and I compared it with the message that is generated by my Publish flow..I did the same with Subscribe flow also. And Obviously I was missing some fields.
I added the fields back to my ESQL and made it to work.
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