Академический Документы
Профессиональный Документы
Культура Документы
Pre-Requisites
Eclipse IDE for Java EE Developers
http://www.eclipse.org/downloads/
AWS Toolkit for eclipse
AWS toolkit for Eclipse
(http://docs.aws.amazon.com/AWSToolkitEclipse/latest/GettingStartedGuide/t
ke_setup_install.html)
Go to help tab
Type
Click Next
Click OK.
Click on Properties
Click on Libraries
Click on JRE System Library JAVA SE Unbound and click Remove button
Click on Next
Select the JAR file from the location which you have placed.
Click on OK
Next Updating the code
Changes in code files
Go to Java Resources srccom.eciii-Select ReceiverServlet file
Click on OK
Change whoami.txt with your name and Number.
Change web.xml file 20 th line with your SQS end point.
Change AwsCredentials.properties with your access key and secret key.
After doing the changes in 4 files.Its Time to add your AWS credentials to
Eclipse.
1.
Open Eclipse's Preferences dialog box and click AWS Toolkit in the sidebar.
2.
3.
Type or paste your secret access key in the Secret Access Key box.
4.
Add your access key and Secret key here in the above screen. Click OK
Now its time to run the program.
In the AWS Explorer please make sure that you have selected the region
where you have your SQS configured
Now your code will be publishing to the AWS elastic beanstalk.You will be
able to see the window publishing in your Eclipse screen.
At this time you will be able to see your server at the bottom of Eclipse .
Server -----It will stop sometimes .you need to start it manually by right
click ---start. Please make sure your server is running all the time when
your code is getting published to AWS.
Now go to your AWS console. Click on Elastic Beanstalk.
Now you should able to view your receiver application .
Get the URL .
Sample URL:
Receiver URL:
http://2013ht78094-ezwprrwmk3.elasticbeanstalk.com/
http://2013ht78094-ezwprrwmk3.elasticbeanstalk.com/whoami
Sender URL
http://vaibhavan-r-2013ht78094.elasticbeanstalk.com/
http://vaibhavan-r-2013ht78094.elasticbeanstalk.com/whoami
http://vaibhavan-r-2013ht78094.elasticbeanstalk.com/send/HelloEveryone-Welcoming-U-All-2-The-World-Of-AWS-Services