From: Steve B. <sb...@sm...> - 2006-01-20 11:34:43
|
Hello Lars, =20 From looking at the JNI code it does appear that the initiators in the JNI wrapper return an array of SessionIDs. QFJ returns the actual sessions. This is an unintentional difference in the API. =20 Oren, do you have a preference about whether to return SessionIDs or Sessions from the JNI API? If we want to leave it the way it is in the JNI layer, I'll need to modify the initiators (and acceptors?) in QFJ to return the same data types.=20 =20 The initiator concrete classes also have an isLoggedOn(SessionID) method that is not present in the Initiator interface. That might be useful for your purposes. =20 Steve Bate Smart Trade Technologies Phone: +33 4 42 90 03 97 http://www.smart-trade.net/ ________________________________ From: qui...@li... [mailto:qui...@li...] On Behalf Of lar...@su... Sent: Friday, January 20, 2006 11:40 AM To: qui...@li... Subject: [Quickfix-users] Checking that all sessions is connected =09 =09 I'm using java and both quickfix\J and the regular native interface. I'm using multiple sessions and are looking on a way to get info on a specific session in the java environment.=20 =20 In the c/c++ environment the initiator/acceptor classes have both the function getSessions() and getSession(arguments). But the Java versions only have the getSessions() that returns the SessionID not the actually session. =20 =20 Then my problem is that if I want to know if every session is connected I for example want to use initiator.isConnected() to check that every connection is connected or check every connection separately. The problem is that the isConnected() return true if any of the connections is connected and that I havn't found a way to check that a single connection is connected. =20 Do I have to keep track of logon/logoff myself in java but not in C/C++ =20 Lars |