Create a RESTful service to perform CRUD operations

Assignment Help JAVA Programming
Reference no: EM132246260

Java EE Programming Assignment - RESTful Service and Client with JSON

Overview - In Assignment, you create a RESTful service to perform CRUD operations on a data structure that stores information about customers. Think of the information as a dataset that may be accessed by many applications used by different departments in a company or even outside of the company. In addition to the service, you create a client program. In this assignment, you build and test the service and one client on the same workstation. In production mode, the service would be deployed to a server so many different clients running on different computers can use it. The client program that you create for this assignment is designed to test that the service works.

Your service makes the functionality of the CustomerManager class available to remote clients. Your client program issues the HTTP requests to the service and interprets the returned results. URIs identify the resource (the customer of interest) and the HTTP verb specifies whether the customer is to be Created, Retrieved, Updated or Deleted. Customer information is passed between the client and the service in JSON notation. The client program runs in Java SE.

To submit your solution, upload two files:

  • A WAR for the server side because RESTful services are deployed in Web applications.
  • A JAR file for the client side because the client runs as an ordinary Java SE program.

Instructions -

1. In this document, when you see a project name that starts Your Name or a package name that starts your.name, substitute your group name. This naming convention identifies your code for marking.

2. Open Eclipse to a new workspace and work in the Java EE perspective.

3. If in a new workspace (always recommended) create a new instance of the Wildfly server and start the server.

4. Create a New Dynamic Web Project for Service.

5. Create a New Java Project for Client.

6. Add the JARs that provide the RESTEasy API to the classpath of the client.

7. Create a class to implement your service. It will have a method for each operation.

8. Add a getCustomer() method to your service class. This method receives an account no as a String argument. The return type must be JsonObject.

9. Add a getAllCustomers() method. It has no argument.

10. When both get operations work from a browser, start to code the client.

11. Create two classes your client class.

12. Add the method to get a customer to your client class.

13. Test by running the Tester class as a Java application.

14. Make a helper class that has methods to convert between Customer objects from JSON notation.

15. Continue by adding methods addCustomer(), updateCustomer () and deleteCustomer () to your service class and your client class.

16. Save and close all source files and then test again.

17. Submit your solution.

18. Shut down properly (always).

Attachment:- Assignment File.rar

Reference no: EM132246260

Questions Cloud

Market research to enterprise activity : Identify two contributions of market research to enterprise activity.
What makes you confident that rfp is worth pursuing : What makes you confident that this RFP is worth pursuing? What are the selected funding agency's goals and applicant eligibility?
What are the implications for hr : According to Internet World Statistics, what is the number of people connected to the Internet and what are the implications for HR?
Does the use of telehealth monitoring improve the management : In adults with heart failure, does the use of telehealth monitoring improve the management when compared to non-monitored patients?
Create a RESTful service to perform CRUD operations : COMP-303 Java EE Programming Assignment - RESTful Service and Client with JSON, Centennial College, Canada. Create a RESTful service to perform CRUD operations
Discussion about the psychological consulting services : The manager is required to travel to remote areas of the world and consulting sessions have become irregular due to his work.
Should a business have more fixed or variable costs : 1. Should a business have more fixed or variable costs? 2. What are the types of fixed and variable costs will you would incur in your business?
Describe the health education program needs statement : For this week's discussion board, you will be sharing your health education program's needs statement, two goals, and two objectives.
Implementing risk management process : Explain how you would seek supportwhen implementing risk management process. Why would you need support?

Reviews

len2246260

3/1/2019 8:48:46 PM

No database is involved: the customer information is stored in memory and accessed by the class CustomerManager from assignment 1. Your starting position is a based on the solution to assignment 1. Do not modify the start-up code except as instructed in the instructions and/or comments in the code. RESTful services are decoupled from their clients. There is no need to have the any of the same types in both service and client code. In this assignment, it is just convenient to reuse classes Customer, Account, Address and the ImproperInputException exception that setters in the JavaBeans can throw.

len2246260

3/1/2019 8:48:38 PM

Tips to ensure you always test the latest code and avoid corrupting your workspace - When you think you are ready for a test, make sure the project has no compile errors. Also try to eliminate compiler warnings. A few warnings -- such type safety with generics -- cannot be avoided. Close all editor windows before you add the Web project to the server. Verify that the WAR is deployed before you test from a Web browser or by running the client program. After running a test, remove the Web project from the server before modifying any code in the Web project.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd