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 » how to set JmsConstants.CCSID_UTF16 using jms api

Post new topic  Reply to topic
 how to set JmsConstants.CCSID_UTF16 using jms api « View previous topic :: View next topic » 
Author Message
jkella
PostPosted: Thu Oct 21, 2010 1:45 am    Post subject: how to set JmsConstants.CCSID_UTF16 using jms api Reply with quote

Newbie

Joined: 23 Feb 2010
Posts: 2

HI ALL<

I am trying to set JmsConstants.CCSID_UTF16 using following lines of code


int test= JmsConstants.CCSID_UTF16;



requestTextMessage.setJMSType("MessageText");

requestTextMessage.setIntProperty("JMS_IBM_Encoding", 546);

requestTextMessage.setIntProperty("JMS_IBM_Character_Set", test);


But it is thrrowing javax.jms.JMSException: JMSCS0006: An internal problem occurred. Diagnostic information for service was written to 'E:\Vinay\eFileUSWorkSpace\MQSeries\FFDC\JMSCC0013.FDC'. Please terminate the application as the product is in an inconsistent internal state.


I am using WMQ 6.0 version jars .. do i need to use version 7.0 jars to over come above issue .. or do i need to change any thing in abve lines..

Please help me..
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 21, 2010 10:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

you cannot use V7 functionality and coding with V6 jars.
Also you should set the CCSID on the connection Factory, or in JNDI on the Destination.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jkella
PostPosted: Thu Oct 21, 2010 10:29 pm    Post subject: Reply with quote

Newbie

Joined: 23 Feb 2010
Posts: 2

I am using below code

//Create a MQQueue Factory Object
fact = new MQQueueConnectionFactory();


trying to to set characterset using

fact.setCCSID(1200);


but i am getting error as below
ErrorText : A transcoding error occurred while parsing the input bitstream
ErrorNumber : 5019
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 » how to set JmsConstants.CCSID_UTF16 using jms api
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.