|
From: Joerg T. <Joe...@ma...> - 2007-04-27 11:40:56
|
On 04/27/07 13:26, Thomas Hügel wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > Hello, > > as of FIX 4.4 there is username and password support in the "Login" > message (tag 553,. Is there a way to initiate a session using > username/password ?. Just use the fromAdmin() callback: void toAdmin(Message message, SessionID sessionId) { final Message.Header header = message.getHeader(); if ( header.getField( MsgType.FIELD ).valueEquals( MsgType.LOGON ) ) { message.setField( UserName.FIELD, userName ); message.setField( Password.FIELD, password ); } } Cheers, Jörg -- Joerg Thoennes http://www.macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Geschäftsführer: Roger Macdonald Lothringer Str. 52, D-52070 Aachen Amtsgericht Aachen, HRB 8151, Ust.-Id DE813021663 |