Re: [akka-user] Re: Akka Actor Per Request Java Sample

2014-07-28 Thread John Haigh
Further to this I created a sample at https://github.com/haighis/java-jersey-akka-backend-actor. This is written entirely in Java and is based on the sample at https://github.com/pofallon/jersey2-akka-java. This sample demonstrates: - using actor selection - see below.

Re: [akka-user] Re: Akka Actor Per Request Java Sample

2014-07-25 Thread Akka Team
Hi John, // Here a reference to the backend actor is created ActorRef backend = getContext().actorOf(FromConfig.getInstance().props(), factorialBackendRouter); No, in the above code the actual actor is created and you get back its reference. It is different from looking up the

Re: [akka-user] Re: Akka Actor Per Request Java Sample

2014-07-24 Thread Akka Team
Hi John, My question is this. - In a front end actor is the sending of a message as simple as attaining a reference (in frontend actor onreceive) to the backend actor via an ActorRef and then sending a message to the backend actor? Yes, once you have the ActorRef of an actor you can send

Re: [akka-user] Re: Akka Actor Per Request Java Sample

2014-07-24 Thread John Haigh
HI Endre, Thanks again for the info. Just to confirm this sample on akka activator appears to be a frontend/backend sample that I have been looking for: akka-sample-cluster-java I have some feedback below. //#frontend public class FactorialFrontend extends UntypedActor { final int

[akka-user] Re: Akka Actor Per Request Java Sample

2014-07-22 Thread John Haigh
I was looking to know how to write an actor per request. I want to understand this pattern so I could create a sample similar to the one at https://github.com/muuki88/activator-play-cluster-sample that creates a frontend for an akka cluster in Java. I'm struggling with how to have a frontend

Re: [akka-user] Re: Akka Actor Per Request Java Sample

2014-07-22 Thread Akka Team
Hi John, I was looking to know how to write an actor per request. I want to understand this pattern so I could create a sample similar to the one at https://github.com/muuki88/activator-play-cluster-sample that creates a frontend for an akka cluster in Java. I'm struggling with how to have a

[akka-user] Re: Akka Actor Per Request Java Sample

2014-07-20 Thread Konrad Malawski
Hello John, I don't think there is an equivalent repo to this out there... Although I assume you've seem this post http://techblog.net-a-porter.com/2013/12/ask-tell-and-per-request-actors/ where this code sample originates from? The concepts are pretty generic, and I would recommend checking out