I'm working with Websphere 7 and Websphere MQ 7 I have a message driven bean (MDB) deployed in Websphere which is bound to a (WebSphere MQ Activation Specification) configured queue. The MDB will be receiving messages in EDCIDIC format and need to convert this into ASCII. In the past, directly connecting to the MQ server using native MQ API we had the option to programmatically convert the message using i.e. the following excerpt:
gmo.options = MQC.MQGMO_CONVERT; //Handles EBCDIC/ASCII
getq = qmgr.accessQueue(responseQueue);
while(true)
{
MQMessage msgId = new MQMessage();
msgId.characterSet = 1208;
getq.get(msgId, gmo);
}
But using MDB’s (JMS) there doesn't seem to be an option to instruct the conversion. I suspect Websphere should have a setting to do the conversion as it acts as a bridge between MQ server and the MDB but can’t seem to find a setting in the console.
Any ideas please ?