{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-integration-samples/issues/151","labels_url":"https://api.github.com/repos/spring-projects/spring-integration-samples/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-integration-samples/issues/151/comments","events_url":"https://api.github.com/repos/spring-projects/spring-integration-samples/issues/151/events","html_url":"https://github.com/spring-projects/spring-integration-samples/issues/151","id":117349364,"number":151,"title":"Any repo for annotation based samples ?","user":{"login":"radiumx3","id":4435147,"avatar_url":"https://avatars.githubusercontent.com/u/4435147?v=3","gravatar_id":"","url":"https://api.github.com/users/radiumx3","html_url":"https://github.com/radiumx3","followers_url":"https://api.github.com/users/radiumx3/followers","following_url":"https://api.github.com/users/radiumx3/following{/other_user}","gists_url":"https://api.github.com/users/radiumx3/gists{/gist_id}","starred_url":"https://api.github.com/users/radiumx3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radiumx3/subscriptions","organizations_url":"https://api.github.com/users/radiumx3/orgs","repos_url":"https://api.github.com/users/radiumx3/repos","events_url":"https://api.github.com/users/radiumx3/events{/privacy}","received_events_url":"https://api.github.com/users/radiumx3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-17T12:55:20Z","updated_at":"2015-12-22T16:53:06Z","closed_at":null,"body":"Any repo for annotation based samples ?"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-integration-samples/issues/comments/166672030","html_url":"https://github.com/spring-projects/spring-integration-samples/issues/151#issuecomment-166672030","issue_url":"https://api.github.com/repos/spring-projects/spring-integration-samples/issues/151","id":166672030,"user":{"login":"artembilan","id":1071590,"avatar_url":"https://avatars.githubusercontent.com/u/1071590?v=3","gravatar_id":"","url":"https://api.github.com/users/artembilan","html_url":"https://github.com/artembilan","followers_url":"https://api.github.com/users/artembilan/followers","following_url":"https://api.github.com/users/artembilan/following{/other_user}","gists_url":"https://api.github.com/users/artembilan/gists{/gist_id}","starred_url":"https://api.github.com/users/artembilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artembilan/subscriptions","organizations_url":"https://api.github.com/users/artembilan/orgs","repos_url":"https://api.github.com/users/artembilan/repos","events_url":"https://api.github.com/users/artembilan/events{/privacy}","received_events_url":"https://api.github.com/users/artembilan/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T16:53:06Z","updated_at":"2015-12-22T16:53:06Z","body":"> No bean named 'inboundchannel' is defined\r\n\r\nYou have to declare `@Bean` as a `MessageChannel` for that name. Otherwise it doesn't work as you see.\r\n\r\nFrom other side it isn't clear to me why you don't use `FileReadingMessageSource` directly as a:\r\n```\r\n@Bean\r\n@InboundChannelAdapter(value = \"inboundchannel\", poller = @Poller(fixedDelay = \"50000\", maxMessagesPerPoll = \"1\"))\r\npublic MessageSource<File> fileMessageSource() {\r\nnew FileReadingMessageSource();\r\n....\r\n}\r\nhttp://docs.spring.io/spring-integration/docs/latest-ga/reference/html/configuration.html#annotations\r\n```"}}