How to send a message to an actor's parent in Akka Classic?
You are looking for
getContext().parent()
which gives you the ActorRef of the parent, so you can do
getContext().parent().tell(...)
With Akka 2.4, you have to do context.parent
inside an actor to have its parent actor reference. After that, you can send it a message as before (context.parent ! "hello"
).