Skip to content

wolfsbane9513/ECIII

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code for ECIII

Read the instructions carefully.

Application A; (Sender);

  • 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.

Application B; (Receiver); Java WEB

  • 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.

SQS

  • 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

Sample Screen shots after SQS is configured and applications are deployed in EB

  • Please ignore some minor formatting issues.

Running Sender

01

Running whoami of Sender

02

Running Receiver

03

Running whoami of Receiver

04

The send-receive operation

05
06

Releases

No releases published

Packages

No packages published