Posted: Fri Sep 29, 2006 11:03 am Post subject: Dynamic Publish Subscribe to JMS
Acolyte
Joined: 25 Jun 2004 Posts: 52
Hi,
I am trying to publish a message to a JMS topic dynamically using the JMS Output Node. The Request Property on the JMS Output Node is set to Reply Destination Name. In the Compute node we have coded as below:
CREATE nextsibling of OutputRoot.JMSTransport.Transport_Folders.Header_Values NAME 'Application_Properties';
CREATE LASTCHILD OF OutputRoot.JMSTransport.Transport_Folders.Application_Properties NAME 'threadValue' VALUE '1';
CREATE FIELD OutputRoot.JMSTransport.Transport_Folders.Header_Values.JMSReplyTo type Name value 'jndi://topicName';
RETURN TRUE;
The version of MB is 6.0. The message is not getting published at all. Please let me know if we are missing on something.
Thanks,
~MB
Posted: Sat Sep 30, 2006 4:50 am Post subject: Re: Dynamic Publish Subscribe to JMS
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
MB wrote:
CREATE FIELD OutputRoot.JMSTransport.Transport_Folders.Header_Values.JMSReplyTo type Name value 'jndi://topicName';
RETURN TRUE;
The version of MB is 6.0. The message is not getting published at all. Please let me know if we are missing on something.
Thanks,
~MB
Try using
Code:
SET OutputRoot.JMSTransport.Transport_Folders.Header_Values.JMSReplyTo = 'topic://' || topicName;
If your transport is MQ you could of course just create and populate the MQRFH2 header....The publisher should be authorized to publish on that topic... And if there is no subscriber for that topic the message will simply be discarded...
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