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 » Convert String to MRM Format

Post new topic  Reply to topic
 Convert String to MRM Format « View previous topic :: View next topic » 
Author Message
Gaya3
PostPosted: Wed Jan 21, 2009 5:28 am    Post subject: Convert String to MRM Format Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

I am having a String variable (contains a Record),
i want to convert this to an MRM (messageSet , TDS) format in Java (JCN)


How can i do this,

String Var = "Gaya3|Gayathri|WORLD" (this is how the record looks like)

how can i achieve this.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
gs
PostPosted: Wed Jan 21, 2009 6:01 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

What aspect of the code do you need help with?
How to do the string split or how to create the message in java?
Back to top
View user's profile Send private message
Gaya3
PostPosted: Wed Jan 21, 2009 6:04 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

I just need to do the conversion of String to MRM thats all (as the String contains all data)

the rest of the things are ready.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
gs
PostPosted: Wed Jan 21, 2009 6:08 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

I'm not sure I've quite understood what you're trying to do.
However, it sounds like you want to do this:

Create an output message and define the format & messageset in the message tree.
Split the string into a string array.
For each string in the array, write your string to the corresponding field (from the message set) in the message tree.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jan 21, 2009 6:09 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

you want the createElementAsLastChildFromBitstream method on MbElement.

This is the equivalent to CREATE FIELD... PARSE...
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 » Convert String to MRM Format
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.