<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andrew M wrote:
<blockquote cite="mid:054201c8e83d$aab92a90$002b7fb0$@net" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal">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:<o:p></o:p></p>
  <p class="MsoNormal"><a class="moz-txt-link-freetext" href="http://www.codesynthesis.com/products/xsd/">http://www.codesynthesis.com/products/xsd/</a><o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">and java apps do the same using this:<o:p></o:p></p>
  <p class="MsoNormal"><a class="moz-txt-link-freetext" href="http://xerces.apache.org/">http://xerces.apache.org/</a><o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">Then put those bits of XML on the bus destined
for an XML
Exchange?<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">This document...<o:p></o:p></p>
  <p class="MsoNormal"><a class="moz-txt-link-freetext" href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/pdf/Messaging_Tutorial/Messaging_Tutorial.pdf">http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/pdf/Messaging_Tutorial/Messaging_Tutorial.pdf</a><o:p></o:p></p>
  <p class="MsoNormal">talks about XML based routing in Python and C++
but not in
Java.  Is it not possible in Java?<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">Thanks,<o:p></o:p></p>
  <p class="MsoNormal">Andrew<o:p></o:p></p>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Rhemrg-users-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rhemrg-users-list@redhat.com">Rhemrg-users-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/rhemrg-users-list">https://www.redhat.com/mailman/listinfo/rhemrg-users-list</a>
  </pre>
</blockquote>
<tt>Andrew,<br>
<br>
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).<br>
<br>
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.<br>
<br>
-Ted<br>
<br>
</tt>
</body>
</html>