1 package test; 2 3 import javax.ejb.*; 4 5 10 public class TestSession3Bean implements javax.ejb.SessionBean , test.TestSession3RemoteBusiness, test.TestSession3LocalBusiness { 11 private javax.ejb.SessionContext context; 12 13 19 public void setSessionContext (javax.ejb.SessionContext aContext) { 20 context = aContext; 21 } 22 23 26 public void ejbActivate () { 27 28 } 29 30 33 public void ejbPassivate () { 34 35 } 36 37 40 public void ejbRemove () { 41 42 } 43 45 49 public void ejbCreate () { 50 } 55 56 57 58 61 public int sum(int a, int b) { 62 return a + b; 63 } 64 65 66 67 } 68 | Popular Tags |