Basic HTML version of Foils prepared May 19 99

Foil 23 Client code creates and calls

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


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();

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