{"action":"closed","issue":{"url":"https://api.github.com/repos/SpinGo/op-rabbit/issues/18","labels_url":"https://api.github.com/repos/SpinGo/op-rabbit/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/SpinGo/op-rabbit/issues/18/comments","events_url":"https://api.github.com/repos/SpinGo/op-rabbit/issues/18/events","html_url":"https://github.com/SpinGo/op-rabbit/issues/18","id":98386902,"number":18,"title":"Modify config object; `topic-exchange-name` should not be apart of the connection config","user":{"login":"jpzk","id":31909,"avatar_url":"https://avatars.githubusercontent.com/u/31909?v=3","gravatar_id":"","url":"https://api.github.com/users/jpzk","html_url":"https://github.com/jpzk","followers_url":"https://api.github.com/users/jpzk/followers","following_url":"https://api.github.com/users/jpzk/following{/other_user}","gists_url":"https://api.github.com/users/jpzk/gists{/gist_id}","starred_url":"https://api.github.com/users/jpzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpzk/subscriptions","organizations_url":"https://api.github.com/users/jpzk/orgs","repos_url":"https://api.github.com/users/jpzk/repos","events_url":"https://api.github.com/users/jpzk/events{/privacy}","received_events_url":"https://api.github.com/users/jpzk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-31T13:01:34Z","updated_at":"2015-08-27T08:02:56Z","closed_at":"2015-08-27T08:02:56Z","body":"My application.conf is the current working directory, in the same place where the Jar is placed. If I want to add the configuration manually with the ConfigFactor like below. The rabbitmq.topic-exchange-name will not be used, instead, it is set as a lazy val in RabbitControl.scala:18. See source code below:\r\n\r\n    val config = ConfigFactory.parseFile(new File(\"application.conf\")).getConfig(\"rabbitmq\")\r\n    val rabbitMq = actorSystem.actorOf(Props(new RabbitControl(ConnectionParams.fromConfig(config))))\r\n\r\n\r\n    rabbitmq {\r\n      topic-exchange-name = \"name\"\r\n      connection-timeout = 3000\r\n      virtual-host = \"/\"\r\n      hosts = [\"rabbit.test.com\"]\r\n      username = \"user\"\r\n      password = \"pass\"\r\n      port = 5672\r\n      timeout = 3s\r\n    }\r\n\r\n    [info] Running RabbitTest \r\n    [info] [ERROR] [07/31/2015 14:50:47.636] [such-system-akka.actor.default-dispatcher-3]         [akka://such-system/user/$a] No configuration setting found for key 'rabbitmq.topic-exchange-name'\r\n    [info] com.typesafe.config.ConfigException$Missing: No configuration setting found for key     'rabbitmq.topic-exchange-name'\r\n    [info] \tat com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:152)\r\n    [info] \tat com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:170)\r\n    [info] \tat com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)\r\n    [info] \tat com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:184)\r\n    [info] \tat com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189)\r\n    [info] \tat com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:246)\r\n    [info] \tat com.spingo.op_rabbit.RabbitControl$.topicExchangeName$lzycompute(RabbitControl.\r\n\r\n\r\n"}}