can't set string property which length larger than 65535

when send message which have a string property larger than 65535 bytes, will throw a exception: Exception in thread "main" com.sun.messaging.jms.JMSException: [C4001]: Write packet failed. - cause: java.io.UTFDataFormatException: encoded string too long: xxxxxx bytes
[288 byte] By [crmky] at [2007-11-25 21:53:34]
# 1

unfortunately we use the java string class (using UTF8 encoding) for passing properties

see 4072747 (a related java bug) for more info -

The general gist is that the java implementation of a UTF8 string is limited to 65535

If you are sending a string of that size, you should look @ encoding it yourself and placing in the body of a byte message.

Linda_Schneider at 2007-7-5 1:09:13 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...