sorry for being such a dumb but i dont follow you

El domingo, 10 de abril de 2016, 16:36:02 (UTC-3), √ escribió:
>
> Deployment paths are absolute and your instances do not live directly 
> below your root. (As witnessed by $a in your path)
>
> -- 
> Cheers,
> √
> On Apr 10, 2016 21:16, "Federico Jakimowicz" <polac...@gmail.com 
> <javascript:>> wrote:
>
>> 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://
>> recommendations@127.0.0.1:2553/user/RecommendationsActor", 
>>          ]
>>     }
>>     /trends {
>>         router = round-robin-group
>>         routees.paths = [
>>           "akka.tcp://trends@127.0.0.1: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 akka-user+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
>>>>>>>>>>      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