import java.rmi.*; import javax.ejb.*; public class HelloWorldCMPBean implements EntityBean { EntityContext ctx; public Integer no; public String language; public String message; public String getLanguage() { return language; } public void setLanguage(String language) { this.language = language; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public Integer ejbCreate(Integer no) throws RemoteException, CreateException, RemoteException { this.no = no; return null; } public void ejbPostCreate(Integer no) throws CreateException, RemoteException { } public void ejbLoad() throws RemoteException { } public void ejbStore() throws RemoteException { } public void ejbRemove() throws RemoveException, RemoteException { } public void ejbActivate() throws RemoteException { } public void ejbPassivate() throws RemoteException { } public void setEntityContext(EntityContext ctx) throws RemoteException { this.ctx = ctx; } public void unsetEntityContext() throws RemoteException { ctx = null; } }