You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by Jeppe <Je...@smarttrust.com> on 2006/08/21 12:30:05 UTC
JMS enhancements supporting MapMessage
I explored the source for the JMS binding component and found that
MapMessages are not supported.
I would suggest that MapMessages support are added to the JMS component.
A simple way to use this is to create a very simple XML-mapping format for a
map message. For example a root element with a subelement named according to
the keys in the MapMessage and the content of the element the value of the
entry for the simple types and the XML-beans format for Objects, arrays
could also be encoded according to the XML-beans standard
<mapMessage>
<name>John Doe</name>
<address>Main Street 1A</address>
<anIntArray>
<!-- The XML-beans encoding of an array object -->
</anIntArray>
<theGuiFrameSettings>
<!-- the XML-beans encoding of the GUI frames object
</theGuiFrameSettings>
</mapMessage>
What do you think? Is anybody willing to do this? If not I could give it a
try, though I expect it would need to be peer-reviewed quite thourougly as I
have not done any development in ServiceMix before
--
View this message in context: http://www.nabble.com/JMS-enhancements-supporting-MapMessage-tf2139494.html#a5904419
Sent from the ServiceMix - Dev forum at Nabble.com.
Re: JMS enhancements supporting MapMessage
Posted by James Strachan <ja...@gmail.com>.
On 8/21/06, Jeppe <Je...@smarttrust.com> wrote:
>
> I explored the source for the JMS binding component and found that
> MapMessages are not supported.
>
> I would suggest that MapMessages support are added to the JMS component.
>
> A simple way to use this is to create a very simple XML-mapping format for a
> map message. For example a root element with a subelement named according to
> the keys in the MapMessage and the content of the element the value of the
> entry for the simple types and the XML-beans format for Objects, arrays
> could also be encoded according to the XML-beans standard
>
> <mapMessage>
> <name>John Doe</name>
> <address>Main Street 1A</address>
> <anIntArray>
> <!-- The XML-beans encoding of an array object -->
> </anIntArray>
> <theGuiFrameSettings>
> <!-- the XML-beans encoding of the GUI frames object
> </theGuiFrameSettings>
> </mapMessage>
>
> What do you think?
Sounds good to me. You might wanna allow an XSD type to be specified
so that the values can be ints / floats / doubles and so forth rather
than all strings.
> Is anybody willing to do this? If not I could give it a
> try, though I expect it would need to be peer-reviewed quite thourougly as I
> have not done any development in ServiceMix before
We welcome patches, particularly from first timers! So please have a
try and we'll take a look
http://incubator.apache.org/servicemix/contributing.html
--
James
-------
http://radio.weblogs.com/0112098/