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 » MQMessage WriteInt

Post new topic  Reply to topic
 MQMessage WriteInt « View previous topic :: View next topic » 
Author Message
bvasanth
PostPosted: Mon Aug 23, 2004 9:23 pm    Post subject: MQMessage WriteInt Reply with quote

Apprentice

Joined: 03 May 2004
Posts: 27
Location: Chennai, India

Hi,
I tried to write an integer 128 into a MQ message using writeInt method.
Quote:
java code:
msg.writeInt(128);


But the hex value shows '0000003F' instead of '00000080'. If I write 127, it writes correct hex value of '0000007F'. Anything between 128-159, it writes only '0000003F'. For other numbers, it writes fine. Can anyone point me why it is not writing appropriate hex values from writeInt(128) to writeInt(159)?

I specified encoding as Native.

Thanks,
Vasanth
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Aug 23, 2004 10:21 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

What platform are you running this application on? Also, have you tried reading the same message from the queue and see if it displays the same value?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
bvasanth
PostPosted: Tue Aug 24, 2004 6:32 am    Post subject: Reply with quote

Apprentice

Joined: 03 May 2004
Posts: 27
Location: Chennai, India

It is due to ASCII which cannot show more than 127..Value 128 is getting fine to mainframe CICS application,and it is working.
Thanks
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 » MQMessage WriteInt
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.