[QFJ-464] Logon session Created: 28/Aug/09  Updated: 20/Mar/11  Resolved: 20/Mar/11

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.4.0
Fix Version/s: None

Type: Other Priority: Default
Reporter: Ahmed Al Jebouri Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Attachments: Text File stun.log    

 Description   

Hi, i am new to FIX and i am using the free java API from quickfix, and actually i want to establish the login session, what i want how to add the username and password to the login first message? i tried to add it to the config file but still it is not working, can you help?



 Comments   
Comment by Laurent Danesi [ 28/Aug/09 ]

Hi,

What you need is a Custom Logon: http://www.quickfixj.org/confluence/display/qfj/Implementing+Custom+Logons

Regards,

Laurent

Comment by Ahmed Al Jebouri [ 28/Aug/09 ]

Hi Laurent,

Thank you very much for the valueable information it was very helpfull, but the FIX engine expects encrypted SSL data, can you help me in this regard, sorry to ask this kind of question i am just a beginner, hope you can help

Regards,
Ahmed

Comment by Laurent Danesi [ 28/Aug/09 ]

Hi,

The ToAdmin callback permits you to intercept administrative messages before they are sent on the line.
This will permit you to add what you want in the Logon message as your encrypted SSL data.

So you need to firstly encrypted your password and so place it in the logon message intercepted in Toadmin callback.

Is it what you wanted to know?

Laurent

Comment by Ahmed Al Jebouri [ 28/Aug/09 ]

Hi Laurent,

thank ou for your reply, actually i am trying to connect to integral, and they told me to use stunnel, i was able to to down load it and run it on my machine but still when i am connecting to stunnil the connection get termiated, is there any way to use another SSL with integral.

may be i am not doing the right configuration, stunnil version is 4.27

Regards,
Ahmed

Comment by Ahmed Al Jebouri [ 28/Aug/09 ]

stunil log file also below java output

run:
<20090828-12:22:47, FIX.4.2:order.SWSPB.dev.SWSPB.com->demo.client.fxgrid.integral.com, event>
(Created session)
<20090828-12:22:47, FIX.4.2:order.SWSPB.dev.SWSPB.com->demo.client.fxgrid.integral.com, event>
(Connecting to 127.0.0.1 on port 2508)
<20090828-12:22:47, FIX.4.2:order.SWSPB.dev.SWSPB.com->demo.client.fxgrid.integral.com, outgoing>
(8=FIX.4.29=14935=A34=1349=order.SWSPB.dev.SWSPB.com50=SWSPBle52=20090828-12:22:47.48156=demo.client.fxgrid.integral.com553=trader1554=Welcome0198=0108=3010=112)
<20090828-12:22:47, FIX.4.2:order.SWSPB.dev.SWSPB.com->demo.client.fxgrid.integral.com, event>
(Initiated logon request)
<20090828-12:22:48, FIX.4.2:order.SWSPB.dev.SWSPB.com->demo.client.fxgrid.integral.com, event>
(Socket Error: Connection reset by peer.)
<20090828-12:22:48, FIX.4.2:order.SWSPB.dev.SWSPB.com->demo.client.fxgrid.integral.com, event>
(Disconnecting)
BUILD SUCCESSFUL (total time: 9 seconds)

Comment by Ahmed Al Jebouri [ 28/Aug/09 ]

can you advise if i want to use MINA SSL I/O filter, i already added mina-filter-ssl-1.0.1-sources.jar to my project, also please find below quick fix conf file

[DEFAULT]
ConnectionType=initiator
HeartBtInt=30
FileStorePath=store
StartTime=00:00:00
EndTime=00:00:00
UseDataDictionary=N
SocketConnectHost=70.42.18.200
SocketUseSSL=Y

[SESSION]
BeginString=FIX.4.2
SenderCompID=order.SWSPB.dev.SWSPB.com
TargetCompID=demo.client.fxgrid.integral.com
SocketConnectPort=2508
ResetSeqNumFlag=Y
SocketUseSSL=Y

Generated at Wed May 01 01:47:07 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.