title: Creating multiple Actors and referencing them
body: <p>I am looking at an Akka example built with the Play Framework for a web based chatroom. The example in this case, only has one room and gets instantiated with the following:</p>
  
  <pre><code>val room = Akka.system.actorOf(Props[ChatRoom]) 
  </code></pre>
  
  <p>I want to expand this example and have multiple chat rooms available instead of just one. A user can provide a string, which can be a chatroom "name", and that would create a new chatroom. Anyone that tries to join this chatroom would share a broadcast with each other, but not with people in another chatroom. Very similar to IRC.</p>
  
  <p>My questions are the following:</p>
  
  <p>1: How do I create a ChatRoom with a unique name if one does not already exist?<br>
  2: How can I check if the existing ChatRoom exists and get a reference to it?</p>
  
  <p>The chatroom name will come via either the URL or a query parameter, that part will be trivial. I'm just not entirely sure how to uniquely identify the Akka ChatRoom and later retrieve that Actor by name.</p>