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 » extracting input textmessage from incoming mbmessageassembly

Post new topic  Reply to topic
 extracting input textmessage from incoming mbmessageassembly « View previous topic :: View next topic » 
Author Message
srinath
PostPosted: Mon Mar 12, 2007 10:07 pm    Post subject: extracting input textmessage from incoming mbmessageassembly Reply with quote

Novice

Joined: 08 Mar 2007
Posts: 10

hi every one...

iam working on ibm's websphere message broker 6.0,i need to develop a user defined plugin to accept text message as input through message queue...

in my java program(plugin)iam able to retrieve mbmessage but i need text message or string that i entered in the message queue
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Mon Mar 12, 2007 10:39 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi srinath,

MbMessage.getRootElement().getValue().toString();

I'm not very sure if this will give you what you want, but I think you need to go this way...i.e getting the MbElement and then working on that...

What is your input ? If it's XML then this will not return the entire tree...you might need to do some bitStream(look at MbElement API)...Trial and error

Best of luck.

Regards.
Back to top
View user's profile Send private message Send e-mail
au@kosa
PostPosted: Mon Mar 12, 2007 11:21 pm    Post subject: Reply with quote

Centurion

Joined: 04 Jan 2007
Posts: 103
Location: pune

To extract only the Content (For Example: XML conect) from the message

MbMessage.getRootElement().getLastChild().getLastChild().getValue().toString().trim();
_________________
Regards,
au@kosa
IBM Certified SOA Solution Designer/Associate
Back to top
View user's profile Send private message Yahoo Messenger
srinath
PostPosted: Mon Mar 12, 2007 11:23 pm    Post subject: Reply with quote

Novice

Joined: 08 Mar 2007
Posts: 10

the thing which u told i already did,i got error bcoz its not xml input....

myinput is text message not xml....
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Tue Mar 13, 2007 12:22 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi srinath,

srinath wrote:
the thing which u told i already did,i got error bcoz its not xml input....

myinput is text message not xml....
I did not think that anything other than the XML might fail

Perhaps you should try to put the values from each API into variables and display them in the debugger....you should be able to figure of what works and what not and why,...

Regards.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » extracting input textmessage from incoming mbmessageassembly
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.