You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Hsiao <xi...@cvicse.com> on 2007/12/07 10:22:29 UTC
ActiveMQ CMS Exception
In vs2005-activemq-example project, when I set message property with chinese
language, such as below:
MapMessage* message = session->createMapMessage( );
message->setString("myKey", text); //add 1
message->setStringProperty( "myPropertyKey", "Hello, 世界" );
//add 2
// Tell the producer to send the message
printf( "Sent message #%d from thread %s\n", ix+1,
threadIdStr.c_str() );
producer->send( message );
when I add 1 and run ,the consumer can receive the MapMessage, but can't
getString("myKey") value
when I add 2 and run ,show "JMS Exception occured. Shutting down client."
Does I use error or AMQ not support Chinese language fully.
Envirment: window xp +sp2, vs2005 , activemq-cpp-2.1
--
View this message in context: http://www.nabble.com/ActiveMQ-CMS-Exception-tf4961071s2354.html#a14209269
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: ActiveMQ CMS Exception
Posted by Hsiao <xi...@cvicse.com>.
But I use Unicode character such as below is OK:
TextMessage* message = session->createTextMessage( );
message->setText("Hello, 世界");
can you tell me why? thanks
Tim Bish wrote:
>
> ActiveMQ CPP does not support the Unicode character set currently.
>
> Regards
> Tim.
>
> Hsiao wrote:
>> In vs2005-activemq-example project, when I set message property with
>> chinese
>> language, such as below:
>> MapMessage* message = session->createMapMessage( );
>> message->setString("myKey", text); //add 1
>>
>> message->setStringProperty( "myPropertyKey", "Hello, 世界"
>> );
>> //add 2
>>
>> // Tell the producer to send the message
>> printf( "Sent message #%d from thread %s\n", ix+1,
>> threadIdStr.c_str() );
>> producer->send( message );
>>
>> when I add 1 and run ,the consumer can receive the MapMessage, but can't
>> getString("myKey") value
>> when I add 2 and run ,show "JMS Exception occured. Shutting down
>> client."
>>
>> Does I use error or AMQ not support Chinese language fully.
>>
>> Envirment: window xp +sp2, vs2005 , activemq-cpp-2.1
>>
>
>
>
--
View this message in context: http://www.nabble.com/ActiveMQ-CMS-Exception-tp14209269s2354p14246100.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: ActiveMQ CMS Exception
Posted by Timothy Bish <ta...@twcny.rr.com>.
ActiveMQ CPP does not support the Unicode character set currently.
Regards
Tim.
Hsiao wrote:
> In vs2005-activemq-example project, when I set message property with chinese
> language, such as below:
> MapMessage* message = session->createMapMessage( );
> message->setString("myKey", text); //add 1
>
> message->setStringProperty( "myPropertyKey", "Hello, 世界" );
> //add 2
>
> // Tell the producer to send the message
> printf( "Sent message #%d from thread %s\n", ix+1,
> threadIdStr.c_str() );
> producer->send( message );
>
> when I add 1 and run ,the consumer can receive the MapMessage, but can't
> getString("myKey") value
> when I add 2 and run ,show "JMS Exception occured. Shutting down client."
>
> Does I use error or AMQ not support Chinese language fully.
>
> Envirment: window xp +sp2, vs2005 , activemq-cpp-2.1
>