[
https://issues.apache.org/activemq/browse/AMQNET-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51342#action_51342
]
Timothy Bish commented on AMQNET-128:
-------------------------------------
I've rewritten the code in the OpenWireBinaryReader / Writer to allow for
output of string data in Modified UTF-8 using either the standard java short
size prefix or the enhanced Openwire int size prefix for larger strings. The
PrimitiveMap and ActiveMQTextMessage have been altered to use the correct
methods for writing the strings.
In the PrimitiveMap:
* Map Keys are always written with the short size prefix
* Map Values that are strings are written either with the short or int prefix
based on size > 8191, this matches the java code. String with the int size
prefix are sent as BIG_STRING_TYPE.
The TextMessage always uses the int size prefix.
> Writing large string to message queue object throws IOException("Cannot
> marshall string longer than: "+short.MaxValue+" characters, supplied steing
> was: "+text.Length+" characters")
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-128
> URL: https://issues.apache.org/activemq/browse/AMQNET-128
> Project: ActiveMQ .Net
> Issue Type: Bug
> Components: ActiveMQ Client
> Affects Versions: 1.0, 1.1
> Reporter: Jan Willem
> Assignee: Timothy Bish
> Fix For: 1.1
>
> Attachments: OpenWireBinaryWriter.cs,
> OpenWireBinaryWriter.patch.patch, UnitTestRegressionFix.patch
>
>
> Writing large string to message queue object throws IOException("Cannot
> marshall string longer than: "+short.MaxValue+" characters, supplied steing
> was: "+text.Length+" characters")
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.