I am creating my Akka actors via Spring integration as described here 
<https://github.com/typesafehub/activator-akka-java-spring>. When I look at 
my actors paths I always see the $ followed by the letter. For example If I 
create an actor and send the message as

rootActor = system.actorOf(SpringExtProvider.get(system).create("rootActor"
).withRouter(new RoundRobinPool(5)), "root");
rootActor.tell(new Integer(0), null);

and then the log the path inside the actor 

public class RootActor extends UntypedActor {
    private static final Logger logger = 
LoggerFactory.getLogger(RootActor.class);
    
    @Override
    public void onReceive(Object message) throws Exception {
        logger.info("{}  {} received the message", 
this.getClass().getSimpleName(), self().path());
    }
}

The log entry would be

RootActor  akka://AkkaDemo/user/root/$a received the message


I am wondering what $a signify? Another question is should the router be in 
the path?

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to