Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XMLStream

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I basically got an output in the form of an XML and I am trying to send it as an XML Stream. That is what I was told, to send it as an XML Stream. I dunno what that exactly means. I created the XML document using Groovy's MarkupBuilder. Can someone please tell me what an XML Stream means and how that can be done in Groovy?/

Thanks.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okie.. I was able to create an XML using StreamingMarkupBuilder too. But still dunno what to do abt the XMLStream thing.

Thanks.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Arjun Reddy:
That is what I was told, to send it as an XML Stream. I dunno what that exactly means.

Why don't you ask the person who told you this what they meant? Go right to the source.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okie will do that.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um... I think I understand now what he meant. He meant that the JMS message(XML Message) from the sender to the receiver should be a StreamMessage. I got the XML using the StreamingMarkupBuilder. Now how do I convert it to a Stream Message?/

Thanks.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okie.. I don't know if it's correct but this just occurred to me. The xml I got from StreamingMarkupBuilder, it can be converted to a String object and so am going to do this,

StreamMessage.writeString(String value). So, this will be the message to the receiver's onMessage method. I hope it's correct.

Thanks.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you're now doing exactly what was expected.

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it worked.

Thanks.
[ November 04, 2008: Message edited by: Arjun Reddy ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic