Posted: Mon Jul 01, 2002 6:01 pm Post subject: ESQL JMSMap problem
Novice
Joined: 01 Jul 2002 Posts: 10
Hi all,
I have successfully generated a JMSMap message from a Compute and
ResetContentDescriptor nodes.
In the Compute node, I can successfully populate a field of the map i.e.:
SET OutputRoot.JMSMap.map."field1" = 'helloworld';
And my receiver will successfully receive the message as a JMS MapMessage.
However, when I try to populate it with something that contains a double
quote i.e.:
SET OutputRoot.JMSMap.map."field1" = '<?xml version="1.0"?>';
MQSI converts the quote symbol to a """ This causes problems in the
JMSMapMessage, because my JMS receiver which is listening to the queue then
gives the following:
javax.jms.MessageFormatException: MQJMS1047: The map message has an
incorrect format
When I send to the queue using Java classes and a java call
MapMessage.setString("field1", "<?xml version=\"1.0\"?> the receiver pulls
it fine and does not complain about invalid MapMessage. The difference is
that nothing changes the quote symbol to """ Why does MQSI do this? I
also tried the following:
SET OutputRoot.JMSMap.map."field1" = CAST('<?xml version="1.0"?>' AS
CHARACTER ENCODING MQENC_NATIVE);
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