[QFJ-85] Make generateReject a private method Created: 17/Oct/06  Updated: 12/Apr/07  Resolved: 05/Nov/06

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.0.3
Fix Version/s: 1.1.0

Type: New Feature Priority: Default
Reporter: Welf Wustlich Assignee: Steve Bate
Resolution: Fixed Votes: 0
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(); }

 Comments   
Comment by Steve Bate [ 18/Oct/06 ]

Why are you sending session rejects? Normally, only the session protocol implementation would send those messages and an application would send a business reject.

Comment by Steve Bate [ 05/Nov/06 ]

You shouldn't be calling this message. I don't remember why it was public. I'm going to make it private in 1.1.0. The message you are trying to send is a responsibility of the session protocol implementation.

Generated at Sat May 18 04:07:54 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.