FIX Antenna automatically creates a session acceptor when a Logon message is received. A user is notified via FIXServerListener and they may opt to accept or reject this session by calling dispose() or connect().
Use session.connect() to accept a connection.
According to the FIX protocol standard it is not the acceptor's responsibility to reconnect. When a connection is unexpectedly terminated acceptor session is automatically disposed after persisting its state. When a correct Logon is received the acceptor completes reconnection process and continues working from the point at which it has been before termination.
To disconnect the acceptor (this process can be also called "terminate", "delete", "close") the following method can be used:
session.disconnect(String reason);
To release session resources make sure that the session is not saved in any variable and is ready for GC.
Note: it is not necessary to call the dispose() method for acceptor session, since they are disposed automatically upon disconnect(). Initiator sessions could be reconnected later so they are not diposed automatically.
To send outgoing application-level messages use the session.sendMessage(String type, FIXFieldList content) method.
All session level messages are sent automatically when needed.
1.6.3