1 | The variable cart contains a reference to the remote EJBObject, which is created by create. This example creates a new session bean. The reference to the EJBObject is used to call the remote methods. |
2 | ShoppingCartEJB cart = |
3 | cartHome.create("Emma", "0507"); |
4 | cart.addItem(100); |
5 | cart.addItem(251); |
6 | cart.purchase(); |