Posted: Sat Jan 27, 2007 4:12 am Post subject: Is it possible to set user defined attribute for MQMessage?
Newbie
Joined: 18 Jan 2007 Posts: 2 Location: India
I have worked on MQ-JMS. While working with MQ-Java I'm not getting how to put user defined attributes for the MQMessage. In other words I'm looking for some way which is equivalent to the setStringAttribute() method in case of JMS.
Thanks freind, but i'm looking for the way by which I can set user defined attribute... i dont know which method to use... So if u can guide me in this context it will simplify my life can u redirect me to some sample code...
thanks once again
You can also create an MQRFH2 header, and put your user defined properties in that.
Otherwise, the MQMD header does not have any place to put user defined properties. So the choices that are available are to add another header (like the MQRFH2) or to put your properties in the message data some how.
There is sample code around somewhere for writing an MQRFH2 header from plain Java. But I don't have a link handy. _________________ I am *not* the model of the modern major general.
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