[QFJ-688] not getting response to logon message Created: 14/Jun/12 Updated: 15/Nov/12 Resolved: 18/Jul/12 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.5.2 |
Fix Version/s: | None |
Type: | Bug | Priority: | Critical |
Reporter: | sagar narasgonde | Assignee: | Unassigned |
Resolution: | Not a bug | Votes: | 0 |
Labels: | logon | ||
Environment: |
windows 7,my eclipse |
Description |
USING FIX 5.0 I am trying to send logon message from initiator but not able to see any response in acceptor. In initiator i setField for logon type(35) and i send message by session.sendToTarget(message); but i am not getting any response in acceptor side and logon is not successfully done. *********Acceptor side code********** ---AlertAcceptor.java ---AlertServer.java class AlertServer implements Application { OnLogon() { //expecting logon from initiator but not getting } OnLogout { }fromApp() { } toApp() { } fromAdmin() toAdmin() { } }*********Initiator Side code*************** --AlertInitiator.java class AlertInitiator { Application application = new AlertProcess(); //All setting is done socketInitiator initiator=socketInitiator(application ,,,); initiator.start(); //sleep initiator.stop(); } --AlertProcess.java class AlertProcess implements Application { OnLogon() { Message msg=new Message(); msg.getHeader.setField(new String(35,"A"));//header //additionally two more fields from body session.sendTotarget(msg); } OnLogout() { } fromApp() { } and so on.. } |
Comments |
Comment by Grant Birchmeier [ 14/Jun/12 ] |
This looks like a help request, not a bug. Please join the mailing list and send your question there. You will be much more likely to get a response. Only a few people watch new bugs. |
Comment by Jörg Thönnes [ 18/Jul/12 ] |
Closing as not a bug. This is the wrong way to use QF/J. Please look at the examples provided. Thanks. |