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 » I want change the ccsid using java program pls help me

Post new topic  Reply to topic
 I want change the ccsid using java program pls help me « View previous topic :: View next topic » 
Author Message
belal
PostPosted: Thu Dec 14, 2006 12:50 am    Post subject: I want change the ccsid using java program pls help me Reply with quote

Novice

Joined: 14 Dec 2006
Posts: 15

Hi all, how can I change the ccsid using java code
thanks for adv. [/code]


Last edited by belal on Thu Dec 14, 2006 1:54 am; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 14, 2006 1:26 am    Post subject: Reply with quote

Grand High Poobah

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

Why would you want to? CCSID should always match that of the message, i.e. the local one with convert done on get.

What are your requirements?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
belal
PostPosted: Thu Dec 14, 2006 1:52 am    Post subject: Reply with quote

Novice

Joined: 14 Dec 2006
Posts: 15

thanx for your reply
i am making a common program and iwant him to send understandable message to queues in different machines so i'll pass the ccsis as parameter
thanx
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 14, 2006 2:07 am    Post subject: Reply with quote

Grand High Poobah

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

belal wrote:
thanx for your reply
i am making a common program and iwant him to send understandable message to queues in different machines so i'll pass the ccsis as parameter
thanx


NO - do not do this!!!!

The accepted, standard and supported method for doing this in an MQ environment is to set the CCSID to match the message and for the CCSID to be changed at the receiving end by a get with convert, which automatically resolves the difference. Don't reinvent the wheel by sending different formatted messages or adding pararmeters where one already exists.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
belal
PostPosted: Thu Dec 14, 2006 2:16 am    Post subject: thank you .BUT Reply with quote

Novice

Joined: 14 Dec 2006
Posts: 15

thanx again
put can you tell me where I can used the "conver" and how cause I am new with mqseries
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 14, 2006 2:21 am    Post subject: Reply with quote

Grand High Poobah

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

It's an option specified in the application when you get a message from the queue. You'll find full details at:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp

The Intercommunication manual describes the process, the Using Java manual will explain the method options and the Application Programming Guide (& Reference) will give an overview and details for achiving this in other programming languages.

Happy Reading!
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » I want change the ccsid using java program pls help me
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.