|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message contains EBCDIC and ASCII characters |
« View previous topic :: View next topic » |
Author |
Message
|
klee |
Posted: Sun Jan 04, 2004 6:37 am Post subject: Message contains EBCDIC and ASCII characters |
|
|
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 |
|
 |
jefflowrey |
Posted: Sun Jan 04, 2004 8:29 am Post subject: |
|
|
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 |
|
 |
klee |
Posted: Mon Jan 05, 2004 6:47 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Jan 06, 2004 5:20 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|