[
https://issues.apache.org/activemq/browse/AMQNET-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60112#action_60112
]
Timothy Bish commented on AMQNET-257:
-------------------------------------
Its possible to add this, it would have to be added to the IPrimitiveMap
interface since that's how the original NMS API defines that the body of a
MapMessage is accessed. The underlying PrimitiveMap class in NMS actually
supports marshaling and unmarshaling a byte array value already. The only ugly
part is that Message properties are accessed using IPrimitiveMap as well and
the JMS spec defines that only primitive types are allowed in the Message
properties. I'm not sure it would actually break anything to slip a byte array
into the message properties, we could just make it so that a user that tried to
set a byte array on the PrimitiveMap used for Message properties received an
NotSupportedException.
> Request to add SetBytes method to IMapMessage
> ---------------------------------------------
>
> Key: AMQNET-257
> URL: https://issues.apache.org/activemq/browse/AMQNET-257
> Project: ActiveMQ .Net
> Issue Type: Wish
> Components: NMS
> Affects Versions: 1.3.0
> Reporter: Daniel Ellis
> Assignee: Jim Gomes
> Priority: Minor
>
> Comparing NMS with JMS. The IMapMessage interface in NMS is currently
> missing the ability to attach a byte array.
> It would be good if the following methods could be added:
> void SetBytes(string name, byte[] value)
> void SetBytes(string name, byte[] value, int offset, int length)
> byte[] GetBytes(string name)
> The JMS MapMessage doc is here:
> http://www.docjar.org/docs/api/javax/jms/MapMessage.html#setBytes%28String,%20byte%29
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.