Details
Description
The methode generateReject gets the message and a String as parameter.
When we need to provide also the reason, its neccessary to use the following construction:
Reject r = new Reject();
r.set(new RefSeqNum(message.getHeader().getInt(MsgSeqNum.FIELD)));
r.set(new SessionRejectReason(SessionRejectReason....));// Reject reason
r.set(new Text("reject description")); // readable message (optional, but recommended)
try
catch (Exception x)
{ x.printStackTrace(); }