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 » WebSphere Message Broker (ACE) Support » getValue() method on BLOB element Query

Post new topic  Reply to topic
 getValue() method on BLOB element Query « View previous topic :: View next topic » 
Author Message
er_pankajgupta84
PostPosted: Fri Mar 19, 2010 1:32 pm    Post subject: getValue() method on BLOB element Query Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

This is a general discussion.

In java compute node, when we call getValue() method on a MbElemet then - it returns a byte array (Normally we use this for converting blob to string by calling getValue on BLOB parser root element).

My question is - what code page that byte array belong to?

Is is the default of QM?
or
the CCSID mentioned in property folder?
the CCSID mentioned in MQMD folder?
the CCSID mentioned in MQRFH2 folder?

Another question here is..can we change the ccsid or codepage of the byte array returned by getValue method.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
rekarm01
PostPosted: Sun Mar 21, 2010 3:58 pm    Post subject: Re: getValue() method on BLOB element Query Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

er_pankajgupta84 wrote:
what code page that byte array belong to?

Generally, the fields in a WMQ message header describe the next portion of the message. For an WMQ message consisting of MQMD+MQRFH2+Body:
  • the qmgr ccsid describes the character fields defined in the MQMD header
  • the MQMD ccsid describes the character fields in the (static portion of the) MQRFH2 header
  • the MQRFH2 ccsid describes the character fields in the Body
Consult the WMQ APR for more details.

WMB also provides a Properties sub-tree for convenience; it maps to other fields in the message headers, but is not part of the message itself. The Properties ccsid also describes the character fields in the Body.

Different messages can define the Body's ccsid in different headers; it's better to use the Properties ccsid, and let the Properties parser figure out which is the correct header to map to.

er_pankajgupta84 wrote:
can we change the ccsid or codepage of the byte array returned by getValue method.

No; "change" implies "write"; getValue() reads the existing byte array.

After getValue() returns a byte array from an input message, the JCN can convert it to another ccsid, and subsequently use setValue() to write it to the output message. But it's easier to do that in ESQL.
Back to top
View user's profile Send private message
er_pankajgupta84
PostPosted: Mon Mar 22, 2010 6:34 am    Post subject: Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

Quote:
For an WMQ message consisting of MQMD+MQRFH2+Body:
the qmgr ccsid describes the character fields defined in the MQMD header
the MQMD ccsid describes the character fields in the (static portion of the) MQRFH2 header
the MQRFH2 ccsid describes the character fields in the Body


I also believe that, but i think it is not holding good for some reason.

I have a message that has characters which has representation only in 1208 not in 819. My QM is set to 819.

I am sending message thru a soap node and message is coming as 1208 in the flow then i am converting that soap message to a mq message by creating MQMD and MQRFH2 headers and putting it in queue.

Now if i do not creating ccsid in MQMD then my message is failing on MQPUT giving error - "Unconvertible character"

But when I make "CCSID" element in MDMD with 1208 as value then its going through..

Properties header has ccsid set to 1208 ..so i believe it should be applied to parse all the data + header in the down tree..

Any thoughts?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » getValue() method on BLOB element Query
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.