I use below java code to publish document:
public void connection2()throws Exception{
String RNAME={“nsp://127.0.0.1:9000”};
nSessionAttributes nsa=new nSessionAttributes(RNAME);
myReconnectHandler rhandler=new myReconnectHandler();
nSession mySession=nSessionFactory.create(nsa, rhandler);
mySession.init();
nChannelAttributes cattrib = new nChannelAttributes();
cattrib.setName("/wm/is/bingTest/docs/msgdocumentType");
nChannel myChannel=mySession.findChannel(cattrib);
System.out.println("");
nEventProperties props = new nEventProperties();
props.put("msg1", "bond1===");
props.put("msg2", "===");
nConsumeEvent evt = new nConsumeEvent("msg1",props.getByteArray(null) );
myChannel.publish(evt);
}
The publish is successful,But trigger on IS occur error.
Error below:
2015-12-16 09:32:46 CST [ISS.0153.0089C] Trigger bingTest.message:new_messaging_trigger failed decoding: com.wm.app.b2b.server.dispatcher.exceptions.MessagingCoderException: java.io.EOFException
Document Type:
Please see attachments.
Trigger :
Please see attachments.
My Question:
1.My Java code is right? If no, Can you provide a sample code?