{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/4655","labels_url":"https://api.github.com/repos/playframework/playframework/issues/4655/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/4655/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/4655/events","html_url":"https://github.com/playframework/playframework/issues/4655","id":87643534,"number":4655,"title":"Inject Akka shard region in proxy-only mode  ","user":{"login":"bolshakov","id":991265,"avatar_url":"https://avatars.githubusercontent.com/u/991265?v=3","gravatar_id":"","url":"https://api.github.com/users/bolshakov","html_url":"https://github.com/bolshakov","followers_url":"https://api.github.com/users/bolshakov/followers","following_url":"https://api.github.com/users/bolshakov/following{/other_user}","gists_url":"https://api.github.com/users/bolshakov/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshakov/subscriptions","organizations_url":"https://api.github.com/users/bolshakov/orgs","repos_url":"https://api.github.com/users/bolshakov/repos","events_url":"https://api.github.com/users/bolshakov/events{/privacy}","received_events_url":"https://api.github.com/users/bolshakov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-12T07:44:13Z","updated_at":"2015-06-14T20:38:50Z","closed_at":"2015-06-12T23:17:57Z","body":"I have a fornt-end/backend architecture where Play works as front-end to Akka Cluster.\r\nFrom the Play's point of view I  start shard region in proxy-only mode since front-end does not have access to the actor class.\r\n\r\nSo I could not use `AkkaGuiceSupport` trait to inject ActorRef dependency into controller since it requires  an actor class to be present. Example from the [Integrating with Akka](https://www.playframework.com/documentation/2.4.x/ScalaAkka) docs:\r\n\r\n```scala\r\nclass MyModule extends AbstractModule with AkkaGuiceSupport {\r\n  def configure = {\r\n    bindActor[ConfiguredActor](\"configured-actor\")\r\n  }\r\n}\r\n```\r\n\r\nBut in front-end app I access sharded actor by name, not by class:\r\n\r\n```scala\r\nClusterSharding(system).start(\r\n      typeName = \"User\",\r\n      entryProps = None,\r\n      idExtractor = UserRegion.idExtractor,\r\n      shardResolver = UserRegion.shardResolver\r\n)\r\n\r\nClusterSharding(system).shardRegion(\"User\")\r\n```"},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/111874798","html_url":"https://github.com/playframework/playframework/issues/4655#issuecomment-111874798","issue_url":"https://api.github.com/repos/playframework/playframework/issues/4655","id":111874798,"user":{"login":"bolshakov","id":991265,"avatar_url":"https://avatars.githubusercontent.com/u/991265?v=3","gravatar_id":"","url":"https://api.github.com/users/bolshakov","html_url":"https://github.com/bolshakov","followers_url":"https://api.github.com/users/bolshakov/followers","following_url":"https://api.github.com/users/bolshakov/following{/other_user}","gists_url":"https://api.github.com/users/bolshakov/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshakov/subscriptions","organizations_url":"https://api.github.com/users/bolshakov/orgs","repos_url":"https://api.github.com/users/bolshakov/repos","events_url":"https://api.github.com/users/bolshakov/events{/privacy}","received_events_url":"https://api.github.com/users/bolshakov/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T20:38:50Z","updated_at":"2015-06-14T20:38:50Z","body":"@cchantep could you help me to report the issue? Is there any guidelines? \r\n\r\nI reported a problem to Play user mailing list https://groups.google.com/forum/m/#!topic/play-framework/N3e8PZucOq0 without any feedback. Then I created this issue but you have closed it.\r\n\r\nWhat's wrong with my report?"}}