Prepaid Shop - Mobile Service Provider

Create a simple HTML form where users are able to charge their mobile phones with a given amount of money.

 Possible amounts: $10, $30, $50, $100 
 The 3 mobile service providers: "Provider A", "Provider B", "Provider C"
 Mobile phone number: 7 numbers.

Create a servlet which gets the HTTP GET request from the HTML form and checks the validity of the messages. If the message is invalid, then returns an „Invalid data” text, else writes „Ok”.

Message queue

Create an application consisting of three clients. The first client connects to the 'colorQueue' message queue using point-to-point connection and sends messages with randomly assigned parameters (RED, GREEN, and BLUE), every 2 seconds. Create a message processor that receive messages with the 'RED', 'GREEN', and 'BLUE' parameters exclusively. After receiving every 10 messages of the same color, the processor sends a message to the 'colorStatistics' queue indicating that they have processed 10 messages of a given color.

Create a third client that reads the statistics from the 'colorStatistics' queue and outputs to the console, for example, '10 'RED' messages have been processed'.

Create tests to validate the original functionality