Posts

Showing posts from November, 2013

JAVA Recieve AWS SNS HTTP Notification using Servlet

Image
Dear folks, This post is regarding using  AWS SNS HTTP Post notification feature of SNS(Simple Notification Service) of AWS(Amazon Web Services). First of all we need to understand how SNS HTTP Post notification works. 1)Go to AWS Console and login --  2)Go to SNS Service homepage -- 3)If you have SNS topic already created then click on it or create a new one. 4)When you select SNS topic,on right hand panel you can see Create Subscription Button. --  5)When you click on that button,you will be prompted to Select notification type  -- out of        JSON/Email/Http/Https and also Subscription URL. 6)For Subscription URL,it should be URL of Servlet which will capture the notifiaction. -- 7)For Servlet Code --  https://docs.google.com/file/d/0BymDvBs2sT5lVEtscWRxSW5BVW8/edit?usp=drive_web 8)After providing Subscription URL,we click subscribe button which will show Pending Subscription as  following image. -- 9)For the servlet to be able to recieve