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


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
}
}



© 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