FIX router design

1. How to do authentication?

http://www.quickfixj.org/confluence/display/qfj/Implementing+Custom+Logons

 

We are using QFJ to run the Marketcetera Exchange Simulator that
accepts many incoming connections (although we are not doing
authentication).

If it helps, you may want to look at using the
DynamicAcceptorSessionProvider that allows you to use a template and
accept sessions that haven't been pre-determined in your QFJ config
file.

You can then override the onLogon() method and perform authentication
there, throwing a RuntimeException in case of authentication failure.

Steve, would it make sense to modify the Application.onLogon() method
signature to allow it to throw a RejectLogon exception? That'd make
for a cleaner approach...

 

你可能感兴趣的:(FIX router design)