After the J2C service migration process is completed, you may need to perform some post-migration tasks.
// --------------------------------------------------- // Populate the IMS transaction input message with // data. Use the input message format handler method // getSize() to set the LL field of the input message. // --------------------------------------------------- //INPUTMSGFormatHandler inFmtHndlr =new INPUTMSGFormatHandler(); //INPUTMSG input = (INPUTMSG) inFmtHndlr.getObjectPart(); // input.setIn__ll((short) inFmtHndlr.getSize()); //new J2C code INPUTMSG input = new INPUTMSG(); input.setIn__ll((short) input.getSize()); // --------------------------------------------------- // Retrieve the multi-segment output message as a // byte array using the output message format // handler method getBytes(). // --------------------------------------------------- // OutMsgFormatHandler outFmtHndlr = // (OutMsgFormatHandler) output._getFormatHandler(); // segBytes = outFmtHndlr.getBytes(); //new J2C code segBytes = output.getBytes(); //-----old wsadie code---------------------------------------------- // Create and populate segment object from byte array. //------------------------------------------------------------------------- //OUTPUTSEG1FormatHandler outSeg1FH = //new OUTPUTSEG1FormatHandler(); // outSeg1FH.setBytes(buff); //OUTPUTSEG1 S1 = //(OUTPUTSEG1) outSeg1FH.getObjectPart(); //new J2C code OUTPUTSEG1 S1 = new OUTPUTSEG1(); S1.setBytes(buff);