Session Bean Example
package tom.ejb.restaurant.server;
public class OrderBean implements SessionBean{
private transient SessionContext ctx;
//can have many create methods
public void ejbCreate () throws Exception {
//initialization of class variables here
public boolean order(String order) {
System.out.println("order received for " + order);
//these methods are required by the SessionBean interface
public void ejbActivate() throws Exception {
public void ejbDestroy() throws Exception {
public void ejbPassivate() throws Exception {
public void setSessionContext(SessionContext ctx) throws Exception {