Developing EJBs (continued)...Coding the EJB Client
public class TellerClient {
public static void main(String[] argv){
// get the JNDI naming context
Context initialCtx = new InitialContext();
// use the context to lookup the EJB Home interface
TellerHome home=(TellerHome)initialCtx.lookup(”Teller");
// use the Home Interface to create a Session Bean object
Teller teller = home.create();
// invoke business methods
teller.TransferMoney(10001,5456,23345);
// remove the session object