ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Search

 Search found 4 matches
Author Message
  Topic: How to read multi-byte messages into a Java string?
MarkBitter

Replies: 6
Views: 3961

PostForum: IBM MQ Java / JMS   Posted: Fri Aug 12, 2005 7:34 pm   Subject: How to read multi-byte messages into a Java string?
If you want not to have to worry about the bytes and bits why not try the JMS interface ?

That should give you back a string if a string was written when you use a TextMessage.

Enjoy

I kn ...
  Topic: How to read multi-byte messages into a Java string?
MarkBitter

Replies: 6
Views: 3961

PostForum: IBM MQ Java / JMS   Posted: Fri Aug 12, 2005 1:01 pm   Subject: How to read multi-byte messages into a Java string?
Than read the message as bytes
and use java's own transformation features to create the String from the byte

That's exactly what my code sample #2 does.
The problem is creating the java String re ...
  Topic: How to read multi-byte messages into a Java string?
MarkBitter

Replies: 6
Views: 3961

PostForum: IBM MQ Java / JMS   Posted: Thu Aug 11, 2005 7:30 am   Subject: Still not working
Format is set to String (MQSTR).

CCSID's are ok. If it wasn't recognized or translated, the exception would be different.

Problem occurs whether or not I use the convert option.
  Topic: How to read multi-byte messages into a Java string?
MarkBitter

Replies: 6
Views: 3961

PostForum: IBM MQ Java / JMS   Posted: Wed Aug 10, 2005 4:26 pm   Subject: How to read multi-byte messages into a Java string?
I'm trying to read a message with multi-byte characters into a java string. (Unicode)
The characterset code received may be one of several (UTF-8, Big5, etc.)

Failed Code #1:
q.get( m, gmo ); ...
Page 1 of 1

Jump to:  
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.