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 » Target client JMS and CCSID

Post new topic  Reply to topic
 Target client JMS and CCSID « View previous topic :: View next topic » 
Author Message
jeroen.wolff
PostPosted: Thu Feb 07, 2008 12:14 am    Post subject: Target client JMS and CCSID Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 07, 2008 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jeroen.wolff
PostPosted: Mon Feb 11, 2008 2:36 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 11, 2008 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Target client JMS and CCSID
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.