This content has been marked as final.
Show 3 replies
-
1. Re: size limit on (text) message
xs2iop Dec 15, 2003 4:57 AM (in response to dafei)Hi, I have the same error with an object message,
have you found a solution?
regards Sébastien
xs2iop@yahoo.fr -
2. Re: size limit on (text) message
tesuji Dec 19, 2003 8:10 AM (in response to dafei)This is a known problem. The limit for a text-message is 64Kb. Don't ask me why.
There's an easy workaround, use StreamMessage instead of TextMessage:
StreamMessage message = topicSession.createStreamMessage();
message.writeInt(msg.length());
message.writeBytes(msg.getBytes());
publisher = topicSession.createPublisher(topic);
publisher.publish(message);
Where 'msg' is a String containing the message you'd like to send. -
3. Re: size limit on (text) message
dafei Dec 19, 2003 9:53 PM (in response to dafei)i added some memory to jboss using -Xmx today, and it went through with no problem. the file is 2.6 mb to 3.5 mb. i believe much bigger text files can go thru if more memory is added using -Xmx.