|
From: Gregg F. <gr...@br...> - 2007-09-14 17:14:21
|
Toli,
Perfect! Thanks! The following worked quite nicely:
final Message.Header header = msg.getHeader();
try {
if( header.getField(new MsgType()).valueEquals(MsgType.LOGON)){
msg.setField(new Username("*****"));
msg.setField(new Password("*****"));
}
} catch (FieldNotFound e) {
log.error("Message Type field not found in the message... This can't be
good!!!" );
}
Best Regards,
Gregg
----- Original Message -----
From: "Toli Kuznets" <to...@ma...>
To: <qui...@li...>
Sent: Friday, September 14, 2007 11:47 AM
Subject: Re: [Quickfixj-users] Logon message userid / password
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
> Gregg,
>
> There's no way to do it from config files, but you can easily add it
> in your fromAdmin() callback in the quickfix.Application.
>
> see this previous post:
> http://www.nabble.com/FIX-4.4-Logon-with-Username-and-password-tf3657137.html#a10217445
>
>
> On 9/14/07, Gregg Freeman <gr...@br...> wrote:
>> QuickFIX/J Documentation:
>> http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>
>>
>>
>> Hopefully this is pretty simple.. :)
>>
>> I can't seem to figure out how to get a username (553) and password (554)
>> into the logon message when the session starts. I don't see a session
>> configuration option for that, and I can't seem to intercept the logon
>> message before it's sent either.
>>
>> Can anyone lend a hand?
>>
>> Best Regards,
>>
>> Gregg
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Quickfixj-users mailing list
>> Qui...@li...
>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>>
>>
>
>
> --
> Toli Kuznets
> http://www.marketcetera.com: Open-Source Trading Platform
> download.run.trade.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
|