Implement a simple banking application that allows customers of the bank to open and close accounts and deposit and withdraw a certain amount of money. Additionally, the bank should allow customers to buy and sell stock and to obtain price quotes of the stock to buy. It is only necessary to give customers the option to buy stock at the current price.
The data above has the following relations:
Ensure that you use at least one BMP and one CMP entity bean in the above implementations. Relationships should be handled using the mechanisms provided by EJB. Again use at least one container-managed relation and one bean-managed relation.
For the communication between the entity beans use a session bean that provides all the banks functionality to customers. Make use of local interfaces and ejb references where appropriate. Ensure that only bank clearks can invoke the deposit and withdraw methods. Buying and selling stock may be performed by the respective account holders.
Any transaction management necessary may be handled using container managed transactions.
Implement a mechanism to update the stock-price bean implemented. This should be accomplished using a message driven bean that accepts messages containing a company tocker symbol and the current price quote. In order to generate JMS messages that are sent to your message driven bean, implement a small client that periodically checks a web service that publishes stock quote information over the JMS channel to which your bean is subscribed.
More requirements will follow...