// Simple Stateless Session Bean // that returns current system time. package uk.ac.swan.atm42.ejb; import java.rmi.*; import javax.ejb.*; public class TimeHereBean implements SessionBean { private SessionContext sessionContext; //return time here public String getTimeHere() { return new Date().toString(); } // EJB methods public void ejbCreate() throws CreateException {} public void ejbRemove() {} public void ejbActivate() {} public void ejbPassivate() {} public void setSessionContext(SessionContext ctx) { sessionContext = ctx; } }