Describe the tier components interaction

Assignment Help JAVA Programming
Reference no: EM131623259

In this assignment, you are to implement a 3-tier enterprise application based on the following scenario.

The application scenario

An online device sale company needs to implement an e-business system. The system is a typical 3- tier enterprise application that integrates a presentation tier, a business tier and a persistence tier. After user requirement and budget analysis, the executive of IT Department of the company has decided to use Java EE open source technology and related platforms and tools for the implementation of the system. As an officer of the IT Department of the company, you are delegated as the developer of the system core. To accomplish this task, you will need to design, implement, test and document the e-business system.

The assignment specification

1. The persistence tier

a. The company sells only 2 products, laptops and smart phones, and may extend to more products in the future through this general framework. A major assumption is that the 2 products share some common properties. For example, both laptops and smart phones have the properties of Brand, Model, Size of Display, Weight, OS, Camera and Wi-Fi etc. However, a laptop has speciality properties such as a Network Interface (e.g. 1000G Ethernet LAN), Hard Drive and Optical Drive etc.; a smart phone has speciality properties such as Cellular Connectivity (e.g. 4G 700/750/800/900/1800/2100), Location (e.g. GPS) and SIM Card (e.g. Nano or Micro).

b. The product information must be persisted into a Derby database. You are required to use Java Persistence API (JPA) to persist the product information into a Derby database. In order to reduce code redundancy, you should use inheritance mapping. That is, in your design and implementation, the Java entity classes should be at least 3 with 1 class as the super class to abstract the common properties and operations for the 2 products and the other 2 classes as the sub-class for the specialty of each product. You are required to use the JoinedSubclass Strategy (detailed from page 170 of the textbook) in your design and implementation.

c. The company needs to store customer details and customer orders. You are required to use entities to persist customer details and customer orders. The relationship between a customer and his/her orders must be one-to-many (detailed from page 156 of the textbook), i.e. a customer can have multiple orders, and each order is just for one product item only.

2. The business tier

Develop the business tier by using Enterprise Java Beans (EJB). The business tier will process the data persistence or retrieval requests from users and interact with the persistence tier for accomplishing the requests.

Note: to interact with the persistence tier, the EJBs need to use Java Persistence Query Language (JPQL) to query entities and return the processed results to the presentation tier.

3. The presentation tier

Develop the presentation tier by using JavaServer Faces (JSF). The presentation tier will provide a web-based user interface, which will allow users to enter product details, customer details and order details and retrieve these saved information later on. Presenting exception messages, e.g. a user doesn't enter data for a required text field, is necessary and required for this tier.

Note: you need to review Backing Beans (Managed Beans) as the core component of presentation tier and its functions for JSF pages' navigation (detailed from page 354 of the textbook) and do some personal research if necessary.

To demonstrate success, you are required to implement all the required entities, EJBs and JSF pages (.xhtml files) and managed beans. To submit your assignment, you need to provide:

Part 1: Documentation

The diagram of architecture: it should include major components from all 3 tiers, which are depicted by using any formal method e.g. UML.

The typical workflow: you need to use an example workflow, e.g. creating a customer's order, to describe the tier components interaction and JSF pages navigation.

The end user manual and test instruction: you are required to provide detailed instructions about how a user would compile and deploy the software and use the software to persist at least 2 products, 2 customers, where each customer puts in at least 2 orders.

Part 2: Software

You will have 2 options to provide the complete implementation code of the 3 tiers, including Java source code and executable files, persistence files and JavaServer Faces xhtml pages. You can provide your implementation by either a Maven project or a NetBeans project, which must satisfy:

1. The project can be compiled directly without any further revision/re-development or debugging.

2. The generated .war application from the project can be executed on a separate/independent GlassFish server (not the NetBeans embedded one) to interact with a separate/independent Derby database (not the NetBeans embedded one).

Demonstration of the e-business system

To help you understand and develop the application, a number of screenshots have been provided to demonstrate the e-business system's functionality of a reference implementation. You will need to use this demonstration as a guide to ensure that your development complies with the assignment specification and its function is complete. The demonstration can be accessed on the unit web site.

Textbook - Beginning Java EE 7, by Antonio Goncalves.

Attachment:- Assignment Files.rar

Reference no: EM131623259

Questions Cloud

Make a case for the importance of email in the workplace : Make a case for the importance of email in the workplace OR present an alternative form of communication that could replace email in professional environment.
Case study on double ink printers ltd : Explain how your results influence your planning decisions for the audit for the year ending 30 June 2015 - how it may affect the risk of material
What are the major causes of the problem : What are the historical background issues related to this problem. Why is it an important issue that needs to be addressed.
Decision-making application : Based on the best practices you have studied in this course, what do you think are the three best practices for decisionmaking? First, give a summary.
Describe the tier components interaction : The typical workflow: you need to use an example workflow, e.g. creating a customer's order, to describe the tier components interaction
Explain a tenant is facing eviction : Suppose you are a judge and a case is presented before you where a tenant is facing eviction. The landlord has been in constant contact with the tenant
Find the amount of interest to be refunded : Larry Williams made a 60-month loan that has interest of $2,518. He paid the loan in full with 21 months remaining. The interest is refunded based on the rule.
Define astrid reject the jars : Is it a breach of contract that the jars only contain 2% recycled glass
Consumer behavior-social group : Name five products or services that your social group uses a lot. State whether you agree or disagree with the notion that these products help to form group.

Reviews

len1623259

9/1/2017 7:12:43 AM

Australian student, Assignment Specification file. Demonstration file. Textbook. Note: Please gone through the specification and demonstration file as well as marking criteria it’s a 40 marks assignment. Important Note: the demonstration is a system to sell Books and CDs, but the assignment that you need to implement is to sell Laptops and Smart Phones. However the application architecture is the same, that is, you can imagine that Book and Laptop play the same role, and CD and Smart Phone paly the same role. You cannot use Books and CDs as product for your implementation because they are the example entities of the textbook and too much reuse of the example code cannot show your understanding of JPA, EJB or JSF architecture and their usage. Doing so will result in 20% (-8 marks) penalty.

Write a Review

JAVA Programming Questions & Answers

  Write a program to test your class myrectangle.

Compile and run your program until it works and the output looks nice. Add the necessary documentation as described in Course Documents, and then attach your .java file to this assignment. Do not attach the .class file, attach only the .java sourc..

  Need usual internal node structure and constructor

Create a basic, generic DataTree class. As described, it will consist of a binary tree structure, and will need the usual internal node structure and constructor -  Write the other methods used in Section One of the commented-out test code in Main..

  Write a statement to output the volume of the blue box

Write the statement to instantiate an Box object, blueBox, with a length of 6, width of 4, and height of 2. Write a statement to output the volume of the blue box

  Converts a number entered in roman numerals

Write a program that converts a number entered in Roman numerals to decimal form. Your program should consist of a class, say RomanType. An object of romanType should do the following: a. Store the number as a Roman numeral.b. Convert and store the ..

  How to apply filter in servlet

Can you do this assignment please help int this how to apply filter in servlet create 3 class and show the filter chaining phenomenon..... Show the working program thanks.............

  Write a method named rowofstars

Write a method named rowOfStars that takes a single integer parameter n and returns a String with that many stars in it.

  Write a class named daysofmonth

Determine whether the year is divisible by 100. If it is, then it is a leap year if and if only it is divisible by 400. For example, 2000 is a leap year

  Computes the raise and new salary for an employee

Computes the raise and new salary for an employee. Complete the following program to determine the raise and new salary for an employee by adding if ... else statements to compute the raise

  Write down a java program that implements a stack of

write a java program which implements a stack of integers. an integer should only be pushed into the stack if it is

  Determines the number of stages on the rocket

Write a program that reads these data and determines the number of stages on the rocket. Use the data file rocket2.txt. It contains a trailer line with the value -99 for all four values.

  Create using netbeans

Create, using NetBeans, a complete Java program called PatternMakerWithMethods according to the following guidelines.

  Implement a program that reads in a user password

Program continue looping until a valid password is entered. While this isn't required I still think its needed.

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