Thanks!

Good do know!
Frankly speaking I was a little bit confused by the results :)

Regards

Wolfgang

Am Donnerstag, 8. Mai 2014 14:39:41 UTC+2 schrieb Akka Team:
>
> Hi Wolfgang,
>
> that is obviously a bug <https://github.com/akka/akka/issues/15149>, 
> thanks for noticing! For reference, it is fully reproducible in the REPL
>
> scala> 
> system.actorSelection("akka.tcp://server127.0.0.1:2567/user/DummyActor") ? 
> Identify(42) onComplete { case x => println(x) }
>
> scala> Success(ActorIdentity(42,Some(Actor[akka://repl/deadLetters])))
>
>
> Regards,
>
>
> Roland
>
>
>
>
> On Tue, May 6, 2014 at 9:43 AM, Wofr <wolfgan...@hotmail.com <javascript:>
> > wrote:
>
>>
>> I'm doing some testing on remote lookup and dead watch. Therefore I use 
>> an actor (see below) which simple resolves a given address and in the case 
>> we got an actor-path back we start to watch them.
>>
>> When writting the sample I made a type and forgot the @ between the IP 
>> address and the akka-system name. 
>> .. val lookupActor = client.actorOf(Props(new LookupActor("
>> *akka.tcp://server127.0.0.1:2567/user/DummyActor*")), "LookupActor")
>>
>> Surprisingly this not existing actor could be resolved! The DeadLetters 
>> actor seem to reply on my Identy. Is this an expected behavior?
>>
>> *Log:*
>>
>> [info] Found Server Actor..lets watch 
>> akka.tasfcp://sasdferver127.0.0.1:2567/user/DummyActor his lifecycle 
>> akka://clientSystem/deadLetters true
>>
>> *Sample Actor*
>>
>> class LookupActor(path: String) extends Actor {
>>
>>   sendIdentifyRequest()
>>   /* same behaviour as below */
>>  // def sendIdentifyRequest(): Unit =   context.actorSelection(path) ! 
>> Identify(path)
>>
>>   def sendIdentifyRequest(): Unit =   
>> context.actorSelection(path).resolveOne(Duration(5,"seconds")).map { ref =>
>>     println("found actor identity: " + ref)
>>     ActorIdentity(path, Some(ref))
>>   }.pipeTo(self)
>>
>>   def receive = {
>>     case ActorIdentity(`path`, Some(actor)) =>    println("Found Server 
>> Actor..lets watch "+`path`+ " his lifecycle " + actor.path+" 
>> "+actor.isTerminated)
>>         context.watch(actor)
>>     case ActorIdentity(`path`, None)=>             println(s"Remote actor 
>> not availible: $path")
>>     case ReceiveTimeout =>                         sendIdentifyRequest()
>>     case Terminated(ref) =>                        println("Remote actor 
>> died..lets stop myself")
>>       context.stop(self)
>>     case _    =>                                     println("Unhandeld 
>> msg received")
>>   }
>> }
>>
>>
>>  -- 
>> >>>>>>>>>> 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 akka-user+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Akka Team
> Typesafe - The software stack for applications that scale
> Blog: letitcrash.com
> Twitter: @akkateam
>  

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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