You are not logged in.
I'm using Talend Open Studio 4.0.1 (WinXP).
My question is about tMomInput component with "Message Body Type" set to "Bytes Message".
As I can see in the generated Java code, bytes message from MQ is just transformed into string with default system encoding in this component.
byte bytesMsgBody_tMomInput_1 = new byte[inMessagetMomInput_1 .getMessageLength()]; inMessagetMomInput_1.readFully(bytesMsgBody_tMomInput_1); String msg_tMomInput_1 = new String(bytesMsgBody_tMomInput_1); qMgrtMomInput_1.commit(); row1.from = ""; row1.message = msg_tMomInput_1;
Is it possible to specify another encoding for bytes message?
It seems, that I can transmit message from tMomInput component as a string only and there is not any setting for encoding.
Last edited by Apollo87 (2010-06-03 11:21:18)