The Artima Developer Community
Sponsored Link

Akka Concurrency Forum
Ch 15.2, Bathroom reference

1 reply on 1 page. Most recent reply: Mar 5, 2013 4:18 AM by Derek Wyatt

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Dan Luu

Posts: 27
Nickname: amitra
Registered: Feb, 2013

Ch 15.2, Bathroom reference Posted: Mar 4, 2013 4:06 PM
Reply to this message Reply
Advertisement
I had to substitute context.actorFor("Bathrooms") for actorForControls("Bathrooms") to get the code to work, because actorForControls looks up "Equipment" + name, and the startUtilities function just creates an instance of Bathrooms without putting in under Equipment.

Is 'Bathrooms' intended to live under 'Equipment', and, if so, does that have to be done from inside the actor that's created inside startEquipment, or is there a clean way to do it from inside startUtilities?


Derek Wyatt

Posts: 64
Nickname: dwyatt
Registered: Oct, 2012

Re: Ch 15.2, Bathroom reference Posted: Mar 5, 2013 4:18 AM
Reply to this message Reply
Yeah, it looks like there's some dead code in that chapter. You've done the right thing... I'll fix it up for the final version, but it might look different than what you've done :) Regardless, what you've done is right for this version

Flat View: This topic has 1 reply on 1 page
Topic: Time out exception for ask should be AskTimeoutException Previous Topic   Next Topic Topic: Ch 15.2, TimeUnit


Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2014 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us