Login: password:
Forgot your password?
border
General info | On line material | Assignments
4th assignment

A site exposes the following operations for administrators:
- addBook(String pw, String title,int price) adds a book to the catalog. pw is the admin password. 
- list(
String pw, list of buying operation performed)

The same site exposes the following operations for users:
- void register(String
username, String pw): a new user can define his username and pw, which get recorded on the DB
- Cart getCart(String username, String pw): a registered user can create or retrieve a cart
- List<Books> list(): get a list of the avalable books
- void addToCart(cart, bookID): add a book to the (users') cart

- void buy(cart): writes in the database which books were bought by which user
, empties the cart
- leave(cart): empties the cart

Write the site.

Write a desktop client which allows (as admistrator) to enter new books and populate the database.

Write a desktop client which registers a user.

Write a desktop client which gets a cart, lists the books, allows the user to choose some books, buys them.


Write a desktop client which allows (as administrator) to list the buying operations.


The goal of the assignement is to show that you can correctly identify where to use stateful and stateless beans and entities (you must use at elast one of each sort!).

Deadline Oct  21, 2015 (strict, delivering with a delay will have a penalty proportional to the delay)

You have to deliver:
- source code
- a report.

The report must have the following structure:
  • Title Page containing date, title (Accessing a DB though an EJB layer), your name)
  • Introduction (problem statement, description of the domain, i.e. which data will you be dealing with?)
  • Implementation (report and comment the most relevant pieces of soure code and config files)
  • Explanation (describe where and why you used entities, stateful and stateless beans)
  • Deployment (screen shots of your app running, deocumenting the various steps)
  • Comments and notes (optional: any problems encountered during the project development, any other comment
zip the code, and send the zip and the report via e-mailto : marco.ronchetti at unitn.it
with subject: WEBARCH 16- 4th WEEK ASSIGNMENT DELIVERY


General info | On line material | Assignments

powered by segue
segue_logo
rightop