JAVA Recieve AWS SNS HTTP Notification using Servlet
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 bnotification from SNS topic,it should first confirm subscription programmatically(Handled in code of Servlet).
10)After Subscription SNS Console will look like this. --
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 bnotification from SNS topic,it should first confirm subscription programmatically(Handled in code of Servlet).
10)After Subscription SNS Console will look like this. --
Hi I got stuck with an issue. Please help me out
ReplyDeleteThanks for providing, very useful information. Learn more at AWS Online Training Bangalore and Get more knowledge
ReplyDeleteHI
ReplyDeleteGetting error when i compile the code. Is there any change in the code