ASSIGNMENT:
Write a client on which the user can decide to buy or sell stocks. Stocks have an initial nominal value of 10€. and are bought or sold in grops of 10 at the time.
The user initially has a fixed amount of money (say 1000 €) and a given amount of stocks (say 50). Amount of money and number os stocks are saved in a database, which the client accesses via Hybernate.
In a loop, the user is asked if s/he wants to buy or sell stocks. The current value of the stocks is looked up in a stateless EJB, which returns a value that exhibits some small random fluctuation in time, up to +/- 5% of the fixed nominal value. After each iteration, the values in the DB are updated, and the total amount of money and stocks is shown to the user, until the user, instead of buying or selling again, quits. .
Get familiar with the JPQL (see http://docs.oracle.com/javaee/6/tutorial/doc/bnbtg.html)
Deadline Oct 18, 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:
with subject: WEBARCH - 3rd WEEK ASSIGNMENT DELIVERY
Write a client on which the user can decide to buy or sell stocks. Stocks have an initial nominal value of 10€. and are bought or sold in grops of 10 at the time.
The user initially has a fixed amount of money (say 1000 €) and a given amount of stocks (say 50). Amount of money and number os stocks are saved in a database, which the client accesses via Hybernate.
In a loop, the user is asked if s/he wants to buy or sell stocks. The current value of the stocks is looked up in a stateless EJB, which returns a value that exhibits some small random fluctuation in time, up to +/- 5% of the fixed nominal value. After each iteration, the values in the DB are updated, and the total amount of money and stocks is shown to the user, until the user, instead of buying or selling again, quits. .
Get familiar with the JPQL (see http://docs.oracle.com/javaee/6/tutorial/doc/bnbtg.html)
Deadline Oct 18, 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 mos trelevant pieces of soure code and config files)
- 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
with subject: WEBARCH - 3rd WEEK ASSIGNMENT DELIVERY