activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robbie Gemmell <robbie.gemm...@gmail.com>
Subject Re: qpid cpp text message
Date Thu, 09 Jul 2015 13:35:29 GMT
On 9 July 2015 at 14:23, Timothy Bish <tabish121@gmail.com> wrote:
> On 07/09/2015 04:40 AM, plsph wrote:
>> hi
>> when sending message by qpid proton writen in c, by default the message is
>> text message and i can recieve it with amqp broker in jms format, but when i
>> try to send message by qpid-cpp library it is always binary message, despite
>> message.setcontent("jms-type")
>>
>> anyone have an idea how to transform binary message to text?
>> thx in advance
>>
>>
>>
>> --
>> View this message in context: http://activemq.2283324.n4.nabble.com/qpid-cpp-text-message-tp4698876.html
>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>>
> Can you shed some additional light on what you are doing, what client's
> you use, what broker version etc.
>
> By default the pre-5.12 brokers will be using the NATIVE transformer for
> AMQP messages meaning that the messages will be received by the openwire
> client as BytesMessage types.  If you want full protocol interop you
> need to change to the JMS transformer.
>
> http://activemq.apache.org/amqp.html
>
> --
> Tim Bish
> Sr Software Engineer | RedHat Inc.
> tim.bish@redhat.com | www.redhat.com
> twitter: @tabish121
> blog: http://timbish.blogspot.com/
>

>From looking at
http://mail-archives.apache.org/mod_mbox/qpid-users/201409.mbox/%3c540DB537.3010906@redhat.com%3e

I think whats needed might be using the 'setContentObject' method
instead so the sending client can actually tell that it is a utf8
string rather than bytes and encode it accordingly.

Robbie

Mime
View raw message