Hi, Nawaz JMS specialization use following method to implement it, and it has other type method for other data type.
*getStringProperty*(String<http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html> name) Returns the value of the String property with the specified name. *setStringProperty*(String<http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html> name, String <http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html> value) Sets a String property value with the specified name into the message. If you use message property here, you can filter message at consumer side. On Wed, Feb 4, 2009 at 12:29 PM, Nawaz Ahmed <naah...@progress.com> wrote: > Hello Friends, > > > > These are the headers of the JMS Message: > > > > JMSDestination, JMSRedelivered, JMSTimestamp, JMSExpiration, JMSType, > JMSDeliveryMode, JMSMessageID=, JMSXGroupID, JMSCorrelationID, > JMSPriority, JMSReplyTo > > > > I want to know is there any way to add header to the JMS Messages? > > > > Had used the method setHeader(String name, String value) but > unfortunately it doesnt work. > > > > What is the other way to set the header along with the value and also to > retrieve the same? > > > > > > Thanks and Regards, > > Nawaz Ahmed > > > > -- It's winter now, let's hibernate.