java - Relative router path in configuration file in Akka -


i studying akka framework (java) , building crawler (which, hopefully, open source in coming months...). i've create low-level actors responsible crawl on data sources , return found data message. actors running inside akka router can’t make non-blocking calls on data sources (this solution suggested in akka documentation). 1 of cool features of framework can configure how routers works in configuration files, makes easier change system’s behavior. i.e.:

akka.actor.deployment {   /"*"/querierrouter {     router = balancing-pool     nr-of-instances = 50   } 

this configuration worked fine in simpler unit test. akka system capable identify configuration , associated desired router. however, application increased in complexity, different paths different sizes created , both of them reach router. currently, i’ve paths (simplified version):

akka://crawler/user/$a/$a/resource_processor/$a/query/querierrouter 

which akka system unable find correct configuration, sending following message:

akka.configurationexception: configuration missing router [akka://crawler/user/$a/$a/resource_processor/$a/query/querierrouter] in 'akka.actor.deployment' section. 

i have searched documentation did not found information solution this. so, question is: how can specify configuration valid path ends “querierrouter”? in mind, mandatory make viable (as path can vary dynamically).


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -