Reference: Large Message Streaming Using the Core API
23.3.1. Streaming over Core API The following table shows a list of methods available at ClientMessage which are also available through JMS by the use of object properties. Table 23.1. org.hornetq.api.core.client.ClientMessage API Name Description JMS Equivalent Property setBodyInputStream(InputStream) Set the InputStream used to read a message body when sending it. JMS_HQ_InputStream setOutputStream(OutputStream) Set the OutputStream that will receive the body of a message. This method does not block. JMS_HQ_OutputStream saveOutputStream(OutputStream) Save the body of the message to the OutputStream. It will block until the entire content is transferred to the OutputStream. JMS_HQ_SaveStream