activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <>
Subject Re: BlobMessage in ActiveMQ-CPP by now 2017
Date Thu, 25 May 2017 12:51:32 GMT
One advantage of sending the URL via a blob message instead of just custom
encoding it into a text message is that you don't have to write the custom
encoding and decoding code.

Java also has an ActiveMQBlobMessage class (,
so you would be able to send one in Java and receive it in C++ or vice
versa. But if you used features in one language that were not implemented
in the other, then obviously you may not get full compatibility.


On May 24, 2017 8:04 PM, "e271828" <> wrote:

Thanks,now I know that C++ client can only send and receive the URL,can not
directly upload or download the blob file.
If so that ,why I use blobmessage in C++ ,I can use textmessage instead of
blobmessage,send and receive URL through by textmessae?
my  c++ code as follow:
commands::ActiveMQBlobMessage* message = new
        message->setStringProperty( "FILE.NAME", "www.jpg" );
        producer->send( message );
but my java code can not receive the  blobmessage StringProperty
public void onMessage(Message message) {
                if (message instanceof BlobMessage) {
                    BlobMessage blobMessage = (BlobMessage) message;
                    String fileName =
If it is textmessage,my java code can read the StringProperty  "FILE.NAME".
Does c++ send blobmessage which can only receive by C++ and can not receive
by java?

View this message in context: http://activemq.2283324.n4.
Sent from the ActiveMQ - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message