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

Ted Ross tross at redhat.com
Thu Jul 17 19:10:26 UTC 2008


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_Tutorial/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/90d60408/attachment.htm>


More information about the Rhm-users mailing list