Академический Документы
Профессиональный Документы
Культура Документы
Background
Edward Norton established ABC Corp 15 years ago in Houston. Initially, the company
used to manufacture hardware components, such as LAN cards, keyboards, and
sound cards. Over the years, the business of the ABC Corp has expanded and the
company now has three manufacturing plants and several offices in different cities
across US. The company has also started manufacturing other computer products,
such as processors, motherboards, and memory chips.
The company decides the price of the product on the basis of the following factors:
4. The buyers should be facilitated with a mechanism where by they can keep
on adding the products to the shopping cart in a single session. Finally, while
placing the order they may decide to order for all the products added to the
shopping cart or some of them.
To implement the above functionalities, the Website needs to have the following
modules:
User authentication and login module: This module will ensure that only the
authorized users are allowed to login and access the Website.
A shopping cart module to store the products selected by a user in a session.
A price calculation module to calculate product prices quickly and accurately.
Business logic layer: Consisting of session beans and entity beans. The system
will need to manage transactions while a buyer buys products online. Security
features will also be implemented to secure online payments. Using enterprise
beans for developing the application will help you to take advantage of the
transaction and security features provided by the EJB container in the J2EE
application server.
Data tier: Consisting of SQL Server 2000 database to store the relevant data.
Session beans: For computing the price of the product, incorporating the
shopping cart’s functionality, and invoking entity bean methods.
Entity beans: To store the product, customer, order, and bill information in the
database.
Servlets and JSP: To call the methods of the session and entity beans and
display the retrieved data to the user.
INSTRUCTOR NOTES
Project Activities
The students will get 8 hours to complete the project. The activities to be performed
during this period are:
a. Analyze the case study to identify the system processes.
b. Create the technology diagram that represents the various technologies
used at the different tiers of the application and to display the interaction
among various layers of the N-tier application.
c. Create a flow diagram, representing the logical flow of the application.
d. Create a use case diagram, representing the functional requirements of
the application.
e. Create a sequence diagram of the application architecture.
f. Create the database in SQL Server 2000.
g. Create the login module using JSP, servlet, session bean, and entity
bean.
Background
Joseph McGraw established McGraw Library in 1960 in Atlanta. Since then, the
library has seen consistent growth in the number of members and books. Currently
the library has a collection of over 50,000 books on various topics. The library also
has a collection of audiocassettes, and CDs. The library has a subscription for more
than 100 magazines and journals per month.
To maintain library members data, such as membership id, books issued,
return date, manually in registers is time consuming.
Members have to visit the library for performing simple tasks, such as viewing
the catalog, return date for the books issued to them, and fine amount.
Librarians have to manually check all the entries in the books issued register,
to determine which book has been issued to which user.
2. Library members need to register to the new Online Library System in order
to issue and return books online. Unregistered members should be denied
access to the Online Library System.
4. Library members can issue and return books online using the new online
library system. Issued books will be delivered through courier. Books can be
returned by library members through courier. They need to provide the
details of the courier’s parcel dispatch number while returning books online.
To provide all the envisioned functionalities, the system should have following
modules:
A login module for authenticating the credentials of the library members and
for allowing only registered members to login and access the online library
system.
An online search module to search for books, magazines, and CDs. The search
module will search for books, CDs by author name, book name, subject name,
singer name and music type.
A new registration module to register library members. Existing members need
to register in order to use the online library system. A library member has to
fill an online form and pay the registration charges using credit card.
An add module using which librarians can add and remove books,
audiocassettes and CD related information from the database. Entries for new
books, audiocassettes and CDs will be entered in the database using this
module. Existing information in the database can also be updated using this
module.
A book issue-return module using which books can be issued and returned
online.
The application will use the 3-tier architecture and the following components will be
used in the three tiers of the application:
Business logic layer: Consisting of session beans and entity beans. The system
will need to manage transactions while a library member issues books,
audiocassettes and CDs. Security features will also need to be implemented to
secure online payments. Using enterprise beans will help the application to
take advantage of the transaction and security features provided by the EJB
Container in the J2EE Application Server.
Data tier: Consisting of SQL Server 2000 database will help to store the
relevant data.
The above components can be used to perform the following operations in the
application:
Entity beans: Store library member registration data, book data, CDs data,
issued books data, and returned books data in the database.
Servlets and JSP: Call the methods of the session and entity beans and display
the retrieved data to the user.
INSTRUCTOR NOTES
Project Activities
The students will get 8 hours to complete the project. The activities to be performed
during this period are:
a. Analyze the case study to identify the system processes.
b. Create a technology diagram representing the technologies used at
various tiers of the application and display the interaction among various
layers of the 3-tier application.
c. Create a flow diagram that represents the logical flow of the application.
d. Create a use case diagram representing the functional requirements of
the application.
e. Create a sequence diagram of the application architecture.
f. Create the login module containing JSP, servlet, session bean and entity
bean.
Background
Sky Publishers started as a small publishing house in year 1998 in New York City.
Initially, Sky Publishers had only one printing unit and added two more as business
expanded. Today Sky Publishers has a large number of clients across Europe and
United States.
Keeping track of the work distributed among the printing units is difficult.
The proposed new system will do away with the practice of storing information in
files and instead store information in a centralized database. This will help in easy
data retrieval and maintenance. Securing data will also become easier by
implementing authentication and authorization techniques.
1. A login module to verify the credentials of users before granting them rights
to access or modify data. The new system will store and use publishing
related information from a centralized database. This will ensure the security
of the data.
2. A new user registration module to register new users with the system.
3. A publishing order module to store the details of the orders received from
clients. Sky Publisher’s receive publishing orders from various clients and
want the information to be stored in the database for future reference.
4. A printing unit details module to store Sky Publishers printing units details in
the database which will simplify the process of distributing work among the
different printing units.
5. A status module to keep track of the status of orders. This will help Sky
Publishers in timely delivery of orders to clients.
7. A payment module for calculating publication cost and for storing payment
information received from clients.
The new system can be designed using a 3-tier architecture and developed using the
following components:
Presentation tier: Consisting of Servlets and JSPs. JSP pages can be used for
accepting the data and displaying the final results to the users. Servlets can be
used to manage application flow depending upon user requests.
Business logic layer: Consisting of session beans and entity beans. The system
will need to manage transactions while a user places a publishing order.
Security features will also need to be implemented to secure online payments.
Using enterprise beans will help the application to take advantage of the
transaction and security features provided by the EJB Container in the J2EE
Application Server.
Data tier: Consisting of SQL Server 2000 database to store the relevant data.
The above components can be used to perform the following operations in the
application:
Session beans: For computing publication cost, keeping track of the work
distributed among the printing units, and invoking entity bean methods.
Entity beans: Store user registration data, printing order data, printing units’
details, delivery status module, and payment information data in the database.
INSTRUCTOR NOTES
Project Activities
The students will get 8 hours to complete the project. The activities to be performed
during this period are:
a. Analyze the case study to identify the system processes.
b. Create a technology diagram representing the technologies used at
various tiers of the application and display the interaction among various
layers of the 3-tier application.
c. Create a flow diagram that represents the logical flow of the application.
d. Create a use case diagram representing the functional requirements of
the application.
e. Create a sequence diagram of the application architecture.
f. Create the login module using JSP, servlet, session bean and entity
bean.
g. Create the registration module using JSP, servlet, session bean and
entity bean.
h. Create a module to store publishing order received from clients using
JSP, servlet, session bean and entity bean.
i. Create a module to store Sky Publishers printing units details using JSP,
servlet, session bean and entity bean.
j. Create a module to store printing order status using JSP, servlet, session
bean and entity bean.
k. Create a module to store publishing order’s delivery status using JSP,
servlet, session bean and entity bean.
l. Create the payment module using JSP, servlet, session bean and entity
bean.
m. Create the project documentation by using the formats provided in the
later section.
n. Present the project to the faculty. The faculty will assign marks based on
the evaluation criteria’s specified in this section.
This book contains four case studies. These case studies will be allocated to each
student. The student can start working on the project after the completion of the
third cycle that is the lesson on Entity Beans.
Testing and debugging: This phase involves testing the project before
submitting it to the coordinator.
You can use Unified Modeling language (UML), which you learned in the earlier
course, to design the use case and sequence diagrams.
Once your project design is ready, you can decide upon the different technologies to
be used to implement the different project functionalities. We suggest the following
technologies:
1. You can use CMP entity beans to store and retreive data from the database.
3. You can use servlets for validating user input, and invoking session bean
methods.
4. You can use HTML or JSP pages for accepting user input and displaying
results.
Project Activities
The students will get 8 hours to complete the project. The activities to be performed
during this period are:
o. Analyze the case study to identify the system processes.
Project Timelines
The students should ensure that they complete the following activities before
beginning with the actual coding of the system:
Background
BlueMoon Automobiles started out as a workshop for repairing four wheelers in
1972. From 1980 onwards, they started manufacturing their own cars. Their cars
became popular due to their designs and fuel efficiency. Their business has been
growing at a steady pace. Therefore, they have expanded their business setup. They
now have various manufacturing divisions and several other distribution centers. The
manufacturing divisions acquire the automobile sub-parts from various local
manufacturers.
The management has decided to develop a purchase order module for BlueMoon
Automobiles, which will automate the process of selecting manufacturers and
To provide the envisioned functionalities, the purchase order module should have
following features:
To implement all the features, the Purchase Order Module needs to have the
following components:
To create the Purchase Order Module, you need to make use of the HTML files,
servlet, JSP file, session bean, and entity beans.
1. start.html: Contains the code to create the welcome page of the purchase
order module. It displays two links, New Registration and Registered
Employees Login.
2. Login.html: Contains the code to display the login page from where a
registered employee can login to the application.
4. product.jsp: Contains the code to display product type, accept user’s choice
of product, and transfer product information to the MainServlet.java file.
5. MainServlet.java: Contains the code to accept user input and invoke the
methods of the session bean, ProductSession, to implement various
functionalities of the application.
9. Customer.java: Contains the code to declare the get and set methods for
the customer bean’s fields.
15. PurchaseOrder.java: Contains the code to declare the get and set methods
for the purchaseorder bean’s fields.
INSTRUCTOR NOTES
Setup Requirements
Before deploying the purchase order module application, you need to compile the
enterprise bean Java files using the javac compiler.
You need to ensure that the classpath contains the build
directory and the j2ee.jar file of the lib directory of your J2EE
application server.
1. Create a new .ear file for the project using the New Application Wizard
dialog box.
2. Create a JAR file for the customer CMP entity bean using the New
Enterprise Bean Wizard dialog box. The JAR file of the customer CMP
entity bean will contain the class files Customer.class,
CustomerHome.class, and CustomerBean.class.
3. Create a JAR file for the supplier CMP entity bean using the New Enterprise
Bean Wizard dialog box. The JAR file of the supplier CMP entity bean will
contain the class files Supplier.class, SupplierHome.class, and
SupplierBean.class.
4. Create a JAR file for the purchaseorder CMP entity bean using the New
Enterprise Bean Wizard dialog box. The JAR file of the purchaseorder CMP
entity bean will contain the class files PurchaseOrder.class,
PurchaseOrderHome.class, and PurchaseOrderBean.class.
6. Create a JAR file for the productsession session bean using the New
Enterprise Bean Wizard dialog box. The JAR file will contain the class files
ProductSession.class, ProductSessionHome.class, and
ProductSessionBean.class.
7. Set enterprise bean reference for the productsession session bean with the
customer, supplier, and purchaseorder CMP entity beans using the EJB Refs
tab. Enter the Coded Name as ejb/customerlist while setting reference of
the productsession session bean with the customer entity bean and select
the ejb-jar-ic.jar#CustomerBean from the Enterprise Bean Name drop
down box. Enter the Coded Name as ejb/supplierlist while setting
reference of the productsession session bean with the supplier entity bean
and select the ejb-jar-ic.jar#SupplierBean from the Enterprise Bean
Name drop down box. Enter the Coded Name as ejb/purchaseorder while
setting reference of the productsession session bean with the purchaseorder
entity bean and select the ejb-jar-ic.jar#PurchaseOrderBean from the
Enterprise Bean Name drop down box.
10. Specify projectctx as the context root of the WAR file and the start.html
file as the welcome file.
12. Select the ToolsÆDeploy command to deploy the purchase order module
application.
In J2EE 1.4 Admin Console change database name to J2EE3_PROJECT for
connection pooling.
Before running the application, double click the batch file, InsertSupplierData
from the folder /Database scripts/J2EE3_PROJECT of the TIRM CD, to insert
manufacturer data in the supplier table. Type the following URL in the browser
window to run the purchase order module application:
http://localhost:8080/projectctx
The following figure shows the home page of the purchase order module application:
PROJECT ON
BlueMoon Automobiles Purchase Order Module
Developed by
Coordinator:
Alex Norton
PROJECT ON
Developed by
Name:
Reg. No.:
Batch Code :
Start Date :
End Date :
Name of the Coordinator :
Name of Developer :
Date of Submission :
Coordinator:
System Summary:
Sequence Diagram
Hardware:
Operating system:
Software: