{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/644","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-java","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/644/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/644/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/644/events","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/644","id":145980755,"number":644,"title":"ReceiveQueueMessage sometimes works sometimes not","user":{"login":"speedy78","id":14369251,"avatar_url":"https://avatars.githubusercontent.com/u/14369251?v=3","gravatar_id":"","url":"https://api.github.com/users/speedy78","html_url":"https://github.com/speedy78","followers_url":"https://api.github.com/users/speedy78/followers","following_url":"https://api.github.com/users/speedy78/following{/other_user}","gists_url":"https://api.github.com/users/speedy78/gists{/gist_id}","starred_url":"https://api.github.com/users/speedy78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speedy78/subscriptions","organizations_url":"https://api.github.com/users/speedy78/orgs","repos_url":"https://api.github.com/users/speedy78/repos","events_url":"https://api.github.com/users/speedy78/events{/privacy}","received_events_url":"https://api.github.com/users/speedy78/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/labels/ServiceBus","name":"ServiceBus","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-05T12:58:58Z","updated_at":"2016-04-06T19:46:24Z","closed_at":null,"body":"I have implemented message queue receiving follwing the example in the documentation here https://azure.microsoft.com/en-us/documentation/articles/service-bus-java-how-to-use-queues/.\r\n\r\nI have noticed that even if the queue contains messages, the service.receiveQueueMessage() does not get it. \r\nI have done the same test using .NET c# and it works really fine: it is fast, does not require polling.\r\n\r\nWhy the Java implementation sometime receive queue messages and sometimes not?\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/comments/206529710","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/644#issuecomment-206529710","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/644","id":206529710,"user":{"login":"anuchandy","id":1471612,"avatar_url":"https://avatars.githubusercontent.com/u/1471612?v=3","gravatar_id":"","url":"https://api.github.com/users/anuchandy","html_url":"https://github.com/anuchandy","followers_url":"https://api.github.com/users/anuchandy/followers","following_url":"https://api.github.com/users/anuchandy/following{/other_user}","gists_url":"https://api.github.com/users/anuchandy/gists{/gist_id}","starred_url":"https://api.github.com/users/anuchandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuchandy/subscriptions","organizations_url":"https://api.github.com/users/anuchandy/orgs","repos_url":"https://api.github.com/users/anuchandy/repos","events_url":"https://api.github.com/users/anuchandy/events{/privacy}","received_events_url":"https://api.github.com/users/anuchandy/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T19:46:24Z","updated_at":"2016-04-06T19:46:24Z","body":"@jianghaolu - could you tag someone from service bus team who owns this part of SDK?"}}