title: How to select akka actor with actorSelection?
body: <p>I am trying to select one actor which have already created. Here is a code:</p>
  
  <pre><code>val myActor = system.actorOf(Props(classOf[MyActor]), "myActorName")
  println("myActor path - " + akka.serialization.Serialization.serializedActorPath(myActor))
  println("Selection from spec akka://unit-test/user/myActorName " + system.actorSelection("akka://unit-test/user/myActorName").resolveOne().value)
  println("Selection from spec /user/myActorName/ " + system.actorSelection("/user/myActorName/").resolveOne().value)
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>myActor path - akka.tcp://unit-test@127.0.0.1:46635/user/myActorName#1444872428
  Selection from spec akka://unit-test/user/myActorName None
  Selection from spec /user/myActorName/ None
  </code></pre>
  
  <p>Also I can pass a message to actor and it completes well.
  What I missed during actorSelection? How to select actor properly?</p>
  
  <p><strong>UPDATED</strong></p>
  
  <p>It is very strange, but when I replace <code>system.actorSelection("/user/myActorName/").resolveOne().value</code>
  with <code>system.actorFor("/user/myActorName/")</code> everything works. I mean <code>actorFor</code> returns an actor. (Which is not a right solution due to <code>actorFor</code> is deprecated)</p>