1 37 38 package com.sun.j2ee.blueprints.bank.creditcardservice; 39 40 import javax.ejb.*; 41 import java.rmi.*; 42 43 48 public class CreditCardEndpointBean implements SessionBean { 49 50 private SessionContext sc; 51 52 public CreditCardEndpointBean(){} 53 54 public void ejbCreate() throws CreateException {} 55 56 57 60 public boolean validateCreditCard(String xmlCreditCard) 61 throws RemoteException { 62 return true; 64 } 65 66 public void setSessionContext(SessionContext sc) { 67 this.sc = sc; 68 } 69 70 public void ejbRemove() throws RemoteException {} 71 72 73 public void ejbActivate() {} 75 76 public void ejbPassivate() {} 78 } 79 | Popular Tags |