Reputation: 2894
Is it possible to send a stringstream containing binary over activemq? If so, how is this done?
I know the Java version of activemq has a feature called BlobMessage or StreamMessage to do so, however, this isn't implemented in the c++ version yet. I've already read about the BytesMessage class however I can't find any good c++ examples that implements it.
Thanks.
Upvotes: 1
Views: 1871
Reputation: 18356
If you've downloaded the source for ActiveMQ-CPP then look for the Unit Tests in the the src/test folder that deal with BytesMessage, that will show you how its done. Also the StreamMessage is supported, BlobMessage is not though.
Here is the API Doc for BytesMessage in CMS. http://activemq.apache.org/cms/api_docs/activemqcpp-3.2.5/html/classcms_1_1_bytes_message.html
and StreamMessage http://activemq.apache.org/cms/api_docs/activemqcpp-3.2.5/html/classcms_1_1_stream_message.html
-Tim www.fusesource.com
Upvotes: 2