1 22 package org.jboss.test.testbyvalue.bean; 23 24 import java.rmi.*; 25 import javax.ejb.*; 26 import javax.naming.InitialContext ; 27 import javax.naming.Context ; 28 29 33 public class ByValueStatelessSessionBean implements SessionBean 34 { 35 org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(getClass()); 36 private SessionContext sessionContext; 37 38 public void ejbCreate() throws RemoteException, CreateException 39 { 40 } 41 42 public void ejbActivate() throws RemoteException 43 { 44 } 45 46 public void ejbPassivate() throws RemoteException 47 { 48 } 49 50 public void ejbRemove() throws RemoteException 51 { 52 } 53 54 public void setSessionContext(SessionContext context) throws RemoteException 55 { 56 sessionContext = context; 57 } 60 61 public void doTestByValue(ClassWithProperty propertyClass) throws RemoteException 62 { 63 propertyClass.setX(propertyClass.getX() + 1000); 64 } 65 } 66 | Popular Tags |