Let us go back and modify MyAction
to display some of the header information that we need:
Open
MyAction
and edit thedisplayMessage
method as follows:public Message displayMessage(Message message) throws Exception { System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"); System.out.println("From: " +message.getHeader().getCall().getFrom()); System.out.println("To: " +message.getHeader().getCall().getTo()); System.out.println("MessageID: " +message.getHeader().getCall().getMessageID()); System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"); return message; }
Remove the
PrintBefore
andPrintAfter
actions if they exist. Make sure that we have only the BodyPrinter action:Click on Save.
If...