activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <jbert...@apache.org>
Subject Re: Why input string param length limit on writeUTF(…) of ActiveMQBytesMessage.java
Date Tue, 15 Jan 2019 18:02:27 GMT
When the UTF string is written to the byte buffer the size is written as an
unsigned short which has a max size of 65,535. This may be possible to
change, but there will be compatibility issues to deal with for older
clients which send buffers using the old format.


Justin

On Tue, Jan 15, 2019 at 11:29 AM Youyu Shao <youyushao@crd.com> wrote:

> Hi,
>
> What is the reason that method: public void writeUTF(final String value) of
> org.apache.activemq.artemis.jms.client.ActiveMQBytesMessage.java imposes
> length limit on the input string parameter? It seems that the length is
> limited to either 32767 (or 65535).
>
> writeUTF(…) is a JMS interface method on BytesMessage, which does not seem
> to have such limitation.
>
> Can this be lifted to integer length?
>
> Thanks
>
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message