Read the instructions carefully.
-
Code for Sender is available in Sender folder
-
Make changes to the following files only
AWSCredentials.properties + whoami.txt + web.xml
-
AWSCredentials.properties present in src folder will contain your accesskey and secretid.
-
whoami.txt present in WebContent folder will have your name and BITS idnumber
-
web.xml present in WebContent/WEB-INF folder will have the following configuration.
<servlet>
<description></description>
<display-name>SenderServlet</display-name>
<servlet-name>SenderServlet</servlet-name>
<servlet-class>com.ec3.SenderServlet</servlet-class>
<init-param>
<param-name>SQSDetailsEndPoint</param-name>
<param-value>YOUR SQS ENDPOINT GOES HERE</param-value>
</init-param>
</servlet>
-
You need to replace YOUR SQS ENDPOINT GOES HERE in <param-value> element with your SQS Endpoint.
-
Code for Receiver is available in Receiver folder
-
Make changes to the following files only
AWSCredentials.properties + whoami.txt + web.xml
-
AWSCredentials.properties present in src folder will contain your accesskey and secretid.
-
whoami.txt present in WebContent folder will have your name and BITS idnumber
-
web.xml present in WebContent/WEB-INF folder will have the following configuration.
<servlet>
<description></description>
<display-name>ReceiverServlet</display-name>
<servlet-name>ReceiverServlet</servlet-name>
<servlet-class>com.ec3.ReceiverServlet</servlet-class>
<init-param>
<param-name>SQSDetailsEndPoint</param-name>
<param-value>YOUR SQS ENDPOINT GOES HERE</param-value>
</init-param>
</servlet>
-
You need to replace YOUR SQS ENDPOINT GOES HERE in <param-value> element with your SQS Endpoint.
-
You need to create a SQS Queue that allows Send,Receive and View messages operations only to the following two account numbers
-
Your Account NUMBER
-
871443587426 (This is my account number)
-
I will validate viewing the messages using another account number I have and SQS should deny permission. Failing this, you will lose 2 marks
-
Please ignore some minor formatting issues.