I have 2 mappings for interface transformation. The first is visual mapping and second - java mapping. There are 2 entry of interface mapping.
my java code is:
public void execute(InputStream in, OutputStream out) {
AbstractTrace trace = (AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE );
trace.addInfo("[EscapeMapping] Mapping is starting");
try {
int inputByte = 0;
while((inputByte = in.read()) != -1) {
out.write(inputByte);
}
} catch (Exception e) {
trace.addDebugMessage("[JAVA_MAPPING EXCEPTION] " + e.getMessage() + e.toString());
}
My my receiver gets an empty message.
message monitor:
Interface Mapping http://server.com/Mapping PersonToPersonJDBCInterfaceMapping
<Trace level="1" type="T">*** APPLICATION TRACE TRUNCATED (for more details see LogViewer)***</Trace>
But I don't see my trace message in defaultTrace.trc
Coult you help me?
Why my mapping doesn't work? Do I need to restart J2EE Engine after new version of Java class mapping has been deployed?