Re: Why input string param length limit on writeUTF(…) of ActiveMQBytesMessage.java

2019-01-15 Thread Timothy Bish
The JMS API states that the methods of JMS BytesMessage "are based largely on those found in |java.io.DataInputStream| and |java.io.DataOutputStream|." which is why most implementations will rightly encode using a size value of two bytes to match that of the DataOutputStream writeUTF implementa

Re: Why input string param length limit on writeUTF(…) of ActiveMQBytesMessage.java

2019-01-15 Thread Justin Bertram
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

Why input string param length limit on writeUTF(…) of ActiveMQBytesMessage.java

2019-01-15 Thread Youyu Shao
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). wrtieUTF(...) is a JMS interface met

Why input string param length limit on writeUTF(…) of ActiveMQBytesMessage.java

2019-01-15 Thread Youyu Shao
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 metho