Basic HTML version of Foils prepared May 19 99

Foil 18 Business Logic

From Enterprise Javabeans Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Nancy McCracken


1 public class ShoppingCartEJB
2 implements SessionBean
3 {
4 public boolean addItem(int itemNumber) {
5 // the code for adding items to the cart
6 // may include JDBC™ code.
7 }
8 public boolean purchase () {
9 // the code for purchases
10 }
11 public void ejbCreate(String accountName,
12 String account) {
13 // object initialization code
14 }
15 }

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999