Author |
Message
|
raju71 |
Posted: Mon Oct 08, 2007 1:50 pm Post subject: unreadble characters for messages on AS/400 queues |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Oct 08, 2007 2:13 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
- the message format needs to be MQFMT_STRING
- If JMS the message should be sent to a destination with targetClient = MQ (JNDI) or uri="queue://MYQMGR/MYQUEUE?targetClient=1";
- Make sure the get on the AS400 is done with Convert option
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
raju71 |
Posted: Mon Oct 08, 2007 10:33 pm Post subject: encoding and codedCharSetId values |
|
|
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 |
|
 |
Vitor |
Posted: Mon Oct 08, 2007 11:47 pm Post subject: Re: encoding and codedCharSetId values |
|
|
 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 |
|
 |
raju71 |
Posted: Tue Oct 09, 2007 4:09 pm Post subject: unreadble messages on AS/400 queue |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Oct 09, 2007 6:37 pm Post subject: |
|
|
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 |
|
 |
|