1 20 package org.apache.cactus.sample.ejb; 21 22 import javax.ejb.CreateException ; 23 import javax.ejb.SessionBean ; 24 import javax.ejb.SessionContext ; 25 26 31 public class ConverterEJB implements SessionBean 32 { 33 36 private SessionContext context; 37 38 41 public double convertYenToDollar(double theYenAmount) 42 { 43 return theYenAmount / 100.0; 44 } 45 46 49 public void ejbCreate() throws CreateException 50 { 51 } 52 53 56 public void setSessionContext(SessionContext theContext) 57 { 58 this.context = theContext; 59 } 60 61 64 public void ejbActivate() 65 { 66 } 67 68 71 public void ejbPassivate() 72 { 73 } 74 75 78 public void ejbRemove() 79 { 80 } 81 } 82 | Popular Tags |