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 » unreadble characters for messages on AS/400 queues

Post new topic  Reply to topic
 unreadble characters for messages on AS/400 queues « View previous topic :: View next topic » 
Author Message
raju71
PostPosted: Mon Oct 08, 2007 1:50 pm    Post subject: unreadble characters for messages on AS/400 queues Reply with quote

Novice

Joined: 03 Apr 2006
Posts: 13

I am using MQ java API to put messages on a queue which is on AS/400.
But when the user on AS/400 browses the messages on the AS/400 system he sees the message content as unreadble characters.What parameters I have to set for thr MQ Put program so that AS/400 users can read the message
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 08, 2007 2:13 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

  1. the message format needs to be MQFMT_STRING
  2. If JMS the message should be sent to a destination with targetClient = MQ (JNDI) or uri="queue://MYQMGR/MYQUEUE?targetClient=1";
  3. Make sure the get on the AS400 is done with Convert option


Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
raju71
PostPosted: Mon Oct 08, 2007 10:33 pm    Post subject: encoding and codedCharSetId values Reply with quote

Novice

Joined: 03 Apr 2006
Posts: 13

do we also need to set values for codedcharsetID and encoding values before the message is put on the queue.If so what values should I use.Thanks for providing the information
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Oct 08, 2007 11:47 pm    Post subject: Re: encoding and codedCharSetId values Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

raju71 wrote:
do we also need to set values for codedcharsetID and encoding values before the message is put on the queue.


These values should default to those of the putting queue manager, which is correct. If they don't, they should match the setting used to assemble the message, not the settings of the target platform.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
raju71
PostPosted: Tue Oct 09, 2007 4:09 pm    Post subject: unreadble messages on AS/400 queue Reply with quote

Novice

Joined: 03 Apr 2006
Posts: 13

I set the format to MQFMT_STRING in my MQ java PUT program which is used to send the message from the windows box. When I browse the queue I still see the unreadble characters.But there is no issue when I use the get program to read the message back from windows.So what needs to be changed in my java code so that I could see the message data on AS/400.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Oct 09, 2007 6:37 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

fjb_saper wrote:
If JMS the message should be sent to a destination with targetClient = MQ (JNDI) or uri="queue://MYQMGR/MYQUEUE?targetClient=1";
[list=][/list]
_________________
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 » unreadble characters for messages on AS/400 queues
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.