public class ShoppingCartEJB |
implements SessionBean |
{ |
public boolean addItem(int itemNumber) { |
// the code for adding items to the cart |
// may include JDBC™ code. |
} |
public boolean purchase () { |
// the code for purchases |
} |
public void ejbCreate(String accountName, |
String account) { |
// object initialization code |
} |
} |