Following is a sample session beans:
Java Code:
import javax.ejb.*;

public class MyBean implements SessionBean {

   public void ejbCreate(String user) 
{
   
}

   public void ejbCreate(String user, String id) 
   
}

   public void addUser(String user) {
      
   }

   public void removeUser(String user) {

   }

   public MyBean() {}
   public void ejbRemove() {}
   public void ejbActivate() {}
   public void ejbPassivate() {}
   public void setSessionContext(SessionContext sc) {}

}