Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-85

Make generateReject a private method

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.1.0
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      linux netbeans

      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

      { Session.sendToTarget(r, sessionID); }

      catch (Exception x)

      { x.printStackTrace(); }

        Attachments

          Activity

            People

            • Assignee:
              admin Steve Bate
              Reporter:
              welf Welf Wustlich
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: