Hello,

We are trying to send large messages using JMS API.
The current API uses BytesMessages that load the content of the message in memory, leading to an OutOfMemory Exception. I would like to give the payload as an inputstream instead of a bytebuffer. Is it possible ? Or is there an another way like in ActiveMQ[1] or Jboss[2] ?

When I say large messages, I'm talking of messages that could be about 4GB or more. (This is fixed be the receiver application, we can't chunk the message).
Best regards,

Sylvain.

[1]http://activemq.apache.org/jms-streams.html
[2]http://docs.jboss.org/jbossmessaging/docs/usermanual-2.0.0.beta1/html/large-messages.html#large-messages.streaming.over.jms


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to