I am running Weblogic 10.3 on Linux and I have a bridge installed for Webspere MQ. I am sending TextMesasge from Weblogic and being passed to MQ. But when I read the message on the MQ side, for example
// Receiver reader - my class reader.qMgr = new MQQueueManager(qManager); int openOptions = MQOO_INPUT_AS_Q_DEF | MQOO_OUTPUT ; MQQueue localQueue = reader.qMgr.accessQueue(queueName, openOptions); MQMessage msg = new MQMessage(); MQGetMessageOptions gmo = new MQGetMessageOptions(); localQueue.get(msg, gmo); int n = msg.getDataLength(); System.out.println("The message is " + n + " bytes long"); String msgText = msg.readStringOfByteLength(n); System.out.println("The message is: " + msgText);
I get:
154 bytes message This message is: RFH MQSTR jms_text Hqueue: /// Q113575850399442 ABCDE
"ABCDE" is my message.
Should I somehow instruct Websphere MQ to do the JMS-> MQ conversion, so the message will be considered a simple "ABCDE"?
thanks
source share