[Rhm-users] RE: [Rhemrg-users-list] XML Exchanges

Andrew M andrew at oc384.net
Thu Jul 17 20:20:12 UTC 2008


That's excellent.  If someone could add Python, C++ and Java examples in
this doc it would be very helpful.

http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/pdf/Messaging_Tu
torial/Messaging_Tutorial.pdf

In the meantime. any suggestions where I should look for examples?

Thanks,

Andrew

 

 

From: Ted Ross [mailto:tross at redhat.com] 
Sent: Thursday, July 17, 2008 2:10 PM
To: Andrew M
Cc: rhemrg-users-list at redhat.com; rhm-users at redhat.com
Subject: Re: [Rhemrg-users-list] XML Exchanges

 

Andrew M wrote: 

I need to put Map objects on the bus and pass them around for use by java,
C++ and (potentially).NET applications.  Maps will definitely consist of
String-to-String mappings. There may also be String-to-Float, or
String-to-Long, etc.  What is the best way to do this?  It does not appear
that AMQP supports some native Map type like JMS.    Is the correct plan to
have C++ apps translate the Map to/from XML using this:

http://www.codesynthesis.com/products/xsd/

 

and java apps do the same using this:

http://xerces.apache.org/

 

Then put those bits of XML on the bus destined for an XML Exchange?

 

This document...

http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/pdf/Messaging_Tu
torial/Messaging_Tutorial.pdf

talks about XML based routing in Python and C++ but not in Java.  Is it not
possible in Java?

 

Thanks,

Andrew

 



  _____  



 
_______________________________________________
Rhemrg-users-list mailing list
Rhemrg-users-list at redhat.com
https://www.redhat.com/mailman/listinfo/rhemrg-users-list
  

Andrew,

AMQP has a rich type system that can be used to encode data to be placed in
the payload of messages.  Included is a "map" type that maps string keys to
typed objects (including recursive maps of maps).  Messages composed using
AMQP types can be transferred via any type of exchange and can be encoded
and decoded in any of the supported programming languages (C++, Python,
Java).

The XML exchange serves a completely different purpose.  It allows bindings
to be created using xquery expressions.  Xquery can be run against the
message headers or the message content (if the content is XML) to determine
whether or not to route the message to a particular queue.

-Ted

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhm-users/attachments/20080717/b742d826/attachment.htm>


More information about the Rhm-users mailing list