Details
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
class AlertAcceptor
---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.. }