ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ESQL JMSMap problem

Post new topic  Reply to topic
 ESQL JMSMap problem « View previous topic :: View next topic » 
Author Message
dn415
PostPosted: Mon Jul 01, 2002 6:01 pm    Post subject: ESQL JMSMap problem Reply with quote

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 "&quot;" 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 "&quot;" 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);

But still converts the quote symbol to &quot;

Can someone please help me? Thank you so much.

Thanks,
Duke
dn415@ucla.edu
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
ineedalife
PostPosted: Wed Jul 10, 2002 1:29 pm    Post subject: Reply with quote

Newbie

Joined: 10 Jul 2002
Posts: 3

I'm using WMQI2.1 CSD2 and the following will suppress &quot

SET OutputRoot.JMSMap.map.(XML.AsisElementContent)"field1" = '<?xml version="1.0"?>';

You should download the WMQI 2.1 'Working with Messages' manual from IBM and see the discussion on AsisElementContent in the XML domain chapter.

The URL for the latest WMQI 2.1 manuals is below

http://www-3.ibm.com/software/ts/mqseries/library/manualsa/manuals/wsmqsiv21.html
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ESQL JMSMap problem
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.