Hi!
I'm having a very hard time with akka configuration, I have read quite a
lot, still it seems i fail to understand the proper way to configure akka
many times.
lets suppose i have an actor that wants to send messages to remote actors,
to make it fail proof i want to have groups so i can have the same acto
deployed in several apps, right now is only one of each kind
So far this is my configuration:
akka {
loglevel = INFO
actor {
provider = "akka.remote.RemoteActorRefProvider"
deployment {
/recommendations {
router = round-robin-group
routees.paths = [
"akka.tcp://[email protected]:2553/user/RecommendationsActor",
]
}
/trends {
router = round-robin-group
routees.paths = [
"akka.tcp://[email protected]:2554/user/TrendsActor",
]
}
/front {
router = round-robin-pool
nr-of-instances = 5
}
}
}
remote {
enabled-transports = ["akka.remote.netty.tcp"]
netty.tcp {
hostname = "127.0.0.1"
port = 2551
}
}
}
the problem is that when i want to get a reference to trends or
recommendations from actor front
to do something like this:
public void onReceive(Object message) throws Exception {
System.out.println(message);
ActorRef recommendations =
getContext().actorOf(FromConfig.getInstance().props(), "recommendations");
ActorRef trend = getContext().actorOf(FromConfig.getInstance().props(),
"trends");
recommendations.tell(message, self());
trend.tell(message, self());
}
it fails with:
Caused by: akka.ConfigurationException: Configuration missing for router
[akka://front/user/front/$a/recommendations] in 'akka.actor.deployment'
section.
I dont get why it tries to get recommendations in the path
/front/$a/recommendations I guess it must be something regarding
supervision?
Which would be the proper way to configure or retrieve this?
thanks in advance
--
>>>>>>>>>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.