This class contains all the actual implementation details of our
business logic.
Example 1.3. AboutEJB.java
package nl.datraverse.workshop.ejb.beans;
import javax.ejb.*;
public class AboutEJB implements SessionBean {
public void ejbCreate() {}
public void ejbRemove() {}
public void ejbActivate() {}
public void ejbPassivate() {}
public void setSessionContext(SessionContext ctx) {}
public String workshopVersion() {
return "1.0.0";
}
}
Basically you can choose from three types of interfaces to
implement: SessionBean,
EntityBean, and
MessageDrivenBean. Our bean is a
SessionBean.
These methods should be implemented, but can be empty for
our stateless bean.