Setting MAX message size
843830Jul 8 2004 — edited Jul 8 2004Hello-
I am using Sun ONE MQ 3.5. I have a need to send large messages in some rare instances. One such message is about 20MB. Potentially, these messages could be of any size however.
I have set the following properties in my config.properties and restarted the imq broker
imq.system.max_count=-1
imq.system.max_size=-1
imq.log.level=DEBUG
imq.message.max_size=-1
However, when I attempt to send a message of this size, I get the following error in my imqbroker logs:
[08/Jul/2004:09:23:12 CDT] WARNING [B2011]: Storing of JMS message from IMQConn[AUTHENTICATED,guest@127.0.0.1:1216,jms:1193] failed:
com.sun.messaging.jmq.jmsserver.util.BrokerException: [B4122]: Can not store message 10-10.1.1.65(de:a1:a5:c4:67:27)-1216-1089296592204 on destination directDestination35 [Queue] because the packet size of 19475250 bytes is larger than the message limit of 10485760 bytes.
The size, according to this, is most definitely not unlimited. I can compress these files before adding them to the message body, but there is still the potentially that even a compressed file can exceed this 10MB limit. Also, I can devise an alternate route over sockets or something, but that complicates the solution quite a bit and I'd rather not.
Any suggestions are greatly appreciated.
Thanks!
troy