If there isn't a built-in context-type header (you'll have to research that; I don't know either way), you can always set your own custom header by calling setStringProperty()/setDoubleProperty()/etc. (That's for Java; I don't use NMS, but a quick Google seems to indicate that there's a Properties object to do this in NMS.)
Tim On Feb 24, 2015 4:12 AM, "mahendran m" <[email protected]> wrote: > No , i need didn't use stop . In java i am using JMS Message API and in c# > i am using NMS Message API . How can i achieve now ? > > Subject: Re: Adding mime type to different type of messages > > From: [email protected] > > Date: Tue, 24 Feb 2015 12:58:25 +0200 > > To: [email protected] > > > > If using stomp have a look at v1.2 spec for Header content-type section. > > > > Sent from my Mobile Device! > > > > > On Feb 24, 2015, at 12:48, mahendran m <[email protected]> > wrote: > > > > > > I am sending different type of message like xml , JSON, and text > using JMS Text message. In the consumer side i need to differentiate the > incoming message as Xml or Json or Text message , how can i achieve this ? > .Is there any in built option available to set and get the MIME type like > we are setting the content type in Http request ? >
