What I meant if, would the incorrect use be kind of worked around if I do
this instead?, Notice also I remove the unhandled call.
@Override
public void preStart() throws Exception {
final ActorContext context = context();
initiator = new FixInitiator(entity, log, "order") {
@Override
public void fromApp(Message message, SessionID sessionId) throws
FieldNotFound {
if (message instanceof ExecutionReport) {
final String uuid = message.getString(ClOrdID.FIELD);
final Option<ActorRef> orderPersistor = context.child(uuid);
if (orderPersistor.isDefined()) {
orderPersistor.get().tell(message, noSender());
} else {
log.error("Order persistor for " + uuid + " doesn't exist or
has expired");
}
} else {
log.error("FIX message not recognized " + message);
}
}
};
initiator.start();
super.preStart();
}
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.