Thanks Björn, I finally got it sorted through the use of Futures. Cheers

On Tuesday, 4 November 2014 13:15:18 UTC+1, Björn Antonsson wrote:
>
> Hi Syd,
>
> On 4 November 2014 at 11:45:40, Syd Gillani ([email protected] 
> <javascript:>) wrote:
>
> Hi, 
>
> I am quite new to Akka (so it could be quite a naive question) and I was 
> wondering if its possible to get the final result from a Master actor (in 
> Master-Worker) configuration.
>
>
> For Instance:
>  ActorSystem system = ActorSystem.create("System");
> ActorRef master = system.actorOf(Master.createMaster(), "master");
>  master.tell(initiateProcess, ActorRef.noSender());
>
>
> So after the result is calculated by set of workers and transmitted to the 
> Master, is it possible to access the object from the Mater Class . Cheers
>
>
> The only way to get things out of an actor is through messages. There is a 
> convenience pattern called ask that you can use to get back a reply to a 
> message. An example usage is here in the docs for futures 
> <http://doc.akka.io/docs/akka/2.3.6/java/futures.html#Use_with_Actors>.
>
> B/
>
>
> Syd
>  --
> >>>>>>>>>> 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] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
> Björn Antonsson
> Typesafe <http://typesafe.com/> – Reactive Apps on the JVM
> twitter: @bantonsson <http://twitter.com/#!/bantonsson>
>
>

-- 
>>>>>>>>>>      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.

Reply via email to