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 » IBM MQ Java / JMS » Message contains EBCDIC and ASCII characters

Post new topic  Reply to topic
 Message contains EBCDIC and ASCII characters « View previous topic :: View next topic » 
Author Message
klee
PostPosted: Sun Jan 04, 2004 6:37 am    Post subject: Message contains EBCDIC and ASCII characters Reply with quote

Novice

Joined: 05 Oct 2003
Posts: 15

I have a MQ message which contains EBCDIC and ASCII characters sending from os/390 to AIX. I can get the message in original format using amqsbcg. But all the characters of the message will be converted to ASCII when I get it using JMS.

How can I get this message in original format using JMS?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun Jan 04, 2004 8:29 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you get it as a BytesMessage instead of a TextMessage, that should do it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
klee
PostPosted: Mon Jan 05, 2004 6:47 pm    Post subject: Reply with quote

Novice

Joined: 05 Oct 2003
Posts: 15

I am using the following statement to get the reply message.

Message message = queueReceiver.receive(6000);

But it returns a TextMessage, not a BytesMessage. How I can get it as a BytesMessage? Can I ask the QMGR not to perform EBCDIC/ASCII conversion?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 06, 2004 5:20 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

klee wrote:
I am using the following statement to get the reply message.

Message message = queueReceiver.receive(6000);

But it returns a TextMessage, not a BytesMessage. How I can get it as a BytesMessage?

Actually, it looks like it's returning a Message, not a ByteMessage or a TextMessage.

klee wrote:
Can I ask the QMGR not to perform EBCDIC/ASCII conversion?

If you're seeing the raw data properly using amqsbcg, then the QMGR is not doing EBCDIC/ASCII conversion. It's being done behind the scenes when you do your receive call.

Check the Using Java manual for more information about ways to fix this, and get a raw message instead of a converted message.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Message contains EBCDIC and ASCII characters
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


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

Copyright © MQSeries.net. All rights reserved.