Have a message in Websphere MQ. Have read the message and I am trying to backout the message to Input Queue. Retry threshold not yet reached. Does the MQ message automatically put into Input Q when exception occurs? This is my code:
MQQueueManager qm = new MQQueueManager("");
MQQueue q = qm.accessQueue("");
MQMessage message = new MQMessage();
q.get(message);
System.out.println("Retry Count"+ message.backoutCount);
throw new NullPointerException;
Will the above code put the message to Input Queue again? In this case, it is not putting message back to Input Queue. Message is lost.