Posted: Tue May 28, 2013 11:22 pm Post subject: Extract the payload from JMS Message.
Apprentice
Joined: 02 Dec 2008 Posts: 25
Dear Team,
Could anyone please guide me how to extract the payload from JMS message.
Scenario : I'm using WESB in my project. I would be poling the MQ queue from WESB using MQJMS export. The message in MQ is delimited. Hence I need the payload alone to parse and make as a dataobject and send it to provider
I'm posting a sample plain text message from my MQ explorer. I'm using JMSDatabinding interface and trying to parse the incoming message.
Like you would extract any other text payload from a JMS TextMessage...
Have you tried casting the Message to a javax.jms.TextMessage and invoking getText() on it?
Paradox: it seems your little test there did it, or is the ~ delimitated text we see there a Fata Morgana? (also known to be easily found in the French Air Force...) _________________ MQ & Broker admin
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