开发者

c++ ActiveMQ sending binary messages

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 开发者_StackOverflowI can't find any good c++ examples that implements it.

Thanks.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜