Posted: Wed Mar 10, 2004 1:38 am Post subject: PubSub issue
Master
Joined: 13 May 2002 Posts: 264 Location: Israel
I wonder when using publish/subscribe if to publish message can be attached some info from subscribe message.
For example :
An application subscribes to some topic while inside sub message there is an info field.
When publish message arrives it's immediately forwarded to subscriber as is. Is it possible to attach info field to the publish message ? _________________ Regards.
Leonid.
Thanks for reply.
I found some parameter you can set with subscribe : SubUserData.
From Help :
Quote:
<SubUserData> (MQPSC_SUBSCRIPTION_USER_DATA)
This is a variable length text string. The value is stored by the broker with the subscription, but has no influence on publication delivery to the subscriber. The value can be altered by re-registering to the same subscription with a new value. This attribute is there for the use of the application.
The SubUserData is returned in the Metatopic information (MQCACF_REG_SUB_USER_DATA) for a subscription if present.
What is Metatopic information ? Where is it returned ? _________________ Regards.
Leonid.
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