I also tried
message.getContent() == "Stop order has been rejected by interbank party. System will resubmit this order."
But it doesn't work either. Please help.
Edit:
My workaround for now is:
else if (message.getType() == Type.NOTIFICATION) {
String mess = message.getContent();
int index1 = mess.indexOf("rejected by interbank");
if (index1 != -1) {
...
}
}
But I'd rather check message.getContent() directly. Isn't it supposed to be "REJECT_AND_RESUBMIT-Stop order has been rejected by interbank party. System will resubmit this order." ? If no, what's the full text of this message?