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 » General IBM MQ Support » ASCII or Binary

Post new topic  Reply to topic
 ASCII or Binary « View previous topic :: View next topic » 
Author Message
solomon_13000
PostPosted: Sun Sep 28, 2008 4:11 am    Post subject: ASCII or Binary Reply with quote

Master

Joined: 13 Jun 2008
Posts: 284

Is there any attribute in MQ that can change the message data into ASCII or Binary?. Or must this be done at the application level that is talking to MQ?.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Sep 28, 2008 8:09 am    Post subject: Re: ASCII or Binary Reply with quote

Grand High Poobah

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

solomon_13000 wrote:
Is there any attribute in MQ that can change the message data into ASCII or Binary?. Or must this be done at the application level that is talking to MQ?.

In order to switch the message content you MUST be dealing with a text message (MQFMT_STRING) or javax.jms.TextMessage (same difference).

When you receive the message in MQ you will specify get with convert in the options. In JMS you do not have to specify anything.

Now the conversion will happen in CCSID terms.
In MQ you can indicate a destination CCSID on the MQMD passed to read the message. In JMS you would have to set the CCSID on the qcf/tcf.

By default the CCSID converted to, is the CCSID of the client requesting the message, or if in bindings connection, the CCSID of the qmgr serving the message.

Remember that not all CCSIDs have a conversion from one to another. The default conversion tables of the OS are used. You may also create some of your own conversion tables. Read up in the manuals if you need to do that.

Enjoy
_________________
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 » General IBM MQ Support » ASCII or Binary
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.