Can I send really large files over ActiveMQ Classic?

 FAQ > Using Apache ActiveMQ Classic > Can I send really large files over ActiveMQ Classic?

Can I send really large files over ActiveMQ Classic?

If you are using ActiveMQ Classic 4.2 or later we highly recommend you use Blob Messages which implements an out-of-band transport of the messages. It allows the files to be hosted on external http/ftp sites if required and can support either direct publisher <-> subscriber communication or publisher -> broker/file server -> consumer messaging.

For 4.1 or ealier large file transfer is achieved using JMS Streams.

Normally the JMS API expects the entire JMS messsage to reside in the client side memory; however using Blob Messages or JMS Streams allows you to send and receive arbitrarily large files with very low RAM overhead.

If you want the broker itself to be able to handle large messages (i.e. without needing to use an out-of-band transport mechanism like HTTP or FTP) then use ActiveMQ Artemis.

Apache, ActiveMQ, Apache ActiveMQ, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2024, The Apache Software Foundation. Licensed under Apache License 2.0.