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 » Creating a RFH2 folder from a String

Post new topic  Reply to topic
 Creating a RFH2 folder from a String « View previous topic :: View next topic » 
Author Message
Wolvie
PostPosted: Thu Sep 26, 2002 1:57 am    Post subject: Creating a RFH2 folder from a String Reply with quote

Newbie

Joined: 25 Sep 2002
Posts: 2

Hi,
I have a JMS Map Message with a key-value pair like this

Code:

MapMessage outMessage=session.createMapMessage();
outMessage.setString("Myfolder1","<myfolder1><mysubfolder1>mydata1</mysubfolder1></myfolder1>");
outMessage.setString("Myfolder2","<myfolder2><mysubfolder2>mydata2</mysubfolder2></myfolder2>");


now I want to create in WMQI RFH2 folders with an "xml-like" syntax out of these Strings.

I tought I could manage this with an ESQL statement like this:
Code:

SET OutputRoot.MQRFH2.myfolder=InputRoot.JMSMap.map.myfolder1;


but the Compute node only creates me a folder with the String in it. A trace after the Compute Node is like this:
Code:

(0x1000000)MQRFH2     = (
    (0x1000000)myfolder = (
      (0x2000000) = '<myfolder1><mysubfolder1>mydata1</mysubfolder1></myfolder1>'
    )
   
  )


Perhaps the reason is, that JMS replaces the "<" character with "&lt;" as I have seen when I open the message in my InputQueue.

Is there a way to create a subfolder structure out of this String?

Thank you for help
Back to top
View user's profile Send private message
JLRowe
PostPosted: Thu Sep 26, 2002 3:56 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

Take a look at CREATE FIELD PARSE, this will parse the string into a message tree.

You may have to parse into an XML parser tree first and then move the elements over to the MQRFH2 parser tree.
Back to top
View user's profile Send private message Send e-mail
Wolvie
PostPosted: Thu Sep 26, 2002 6:01 am    Post subject: Reply with quote

Newbie

Joined: 25 Sep 2002
Posts: 2

Okay, it worked ! Thank you !
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 » Creating a RFH2 folder from a String
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.