How did you implement "wait for a future"? The actor cannot process a new message (the reply) if it is blocked. Also, note that you have to reply to the sender() ActorRef to complete the ask future.
Regards, Patrik On Sun, Jan 31, 2016 at 6:47 PM, bangs <[email protected]> wrote: > I have an actor RequestConsumer (exposed over Camel netty http interface) > which consumes requests from clients. Since this actor has to block > inorder to reply to the client, I have implemented RequestConsumer to call > ProcessActor using Patterns.ask and wait for a future response. > ProcessActor will persist the request, send it to a PaymentActor > asynchonously and also to a MerchantActor asynchronously. After receiving > responses asynchronously from these child actors the ProcessActor pipes the > future response to RequestConsumer. However, RequestConsumer always > receives the response after the timeout - like its running on one thread > that can only be released after the timeout. What could I be missing? > > > -- > >>>>>>>>>> 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 https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
