|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Target client JMS and CCSID |
« View previous topic :: View next topic » |
Author |
Message
|
jeroen.wolff |
Posted: Thu Feb 07, 2008 12:14 am Post subject: Target client JMS and CCSID |
|
|
Newbie
Joined: 06 Feb 2008 Posts: 2
|
Hi, after several hours of googling and not finding my answers...a question for the pro's
I want to put a (text)message with jms on a queue en add a <usr> data
in the RFH2 header.
So i choose JMS as target client so i can write data to the rfh2 header with
TextMessage message = session.createTextMessage();
message.setStringProperty("bla","bla");
message.setText("blablablabla");
That works fine....but now i want to specify for the target which encoding
type the body data is.
But i can't change the CodedCharSetId when i use
message.setStringProperty("JMS_IBM_Character_Set","1208")
When i look at the header of the message when i read it with mqtool, than
it shows the CCSID of queuemanager (display qmgr ccsid)
When i say in websphere that the client is MQ instead of JMS, than
it works. Then can i change the CCSID of the message, but then i loose
my needed rfh2.
Does this mean that when i specify JMS as the client, that the client should some how know the encoding of the body,
other than looking at the CCCIS in MQD?
Thanks for the answers...sugestions.
Jeroen |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 07, 2008 5:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I believe to achieve what you are trying to do you need to set CCSID 1208 on the QCF.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jeroen.wolff |
Posted: Mon Feb 11, 2008 2:36 am Post subject: |
|
|
Newbie
Joined: 06 Feb 2008 Posts: 2
|
Thanks for the reply....but stil no change when i change the CCSID
on my connection factory.
In the header i still see 819 instead of 1208.
819 is the default for the queuemanager.
Anybody an idea?
The client is a broker who looks at de MQMD CCSID to determine the
encoding of the body. But also aspect an RFH2 header with data.
So that's why i need to set JMS target client otherwise i can not write
RFH2 with jms.
Jeroen |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 11, 2008 3:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
jeroen.wolff wrote: |
Thanks for the reply....but stil no change when i change the CCSID
on my connection factory.
In the header i still see 819 instead of 1208.
819 is the default for the queuemanager.
Anybody an idea?
The client is a broker who looks at de MQMD CCSID to determine the
encoding of the body. But also aspect an RFH2 header with data.
So that's why i need to set JMS target client otherwise i can not write
RFH2 with jms.
Jeroen |
The client needs to do the same. My guess is the broker might do a get with convert...
RFHUtil / RFHUtilc might tell you more about it... _________________ MQ & Broker admin |
|
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
|
|
|
|