public class EJBMain implements SessionBean {
    /**
     * Create the session bean (empty implementation)
     */
    public void ejbCreate() throws javax.ejb.CreateException {
        System.out.println("ServiceBean:ejbCreate()");
    }

    public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {
    }

    public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {
    }

    public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {
    }

    public void setSessionContext(SessionContext parm1) throws javax.ejb.EJBException, java.rmi.RemoteException {
    }

    public String doService() {
        return null;
    }

    // BAD - Implement a main method in session bean.
    public static void main(String[] args) throws Exception {
        ServiceBean b = new ServiceBean();
        b.doService();
    }

    // GOOD - Not to have a main method in session bean.
}

@@ -200,26 +200,22 @@
 rintln(%22
-ServiceBea
+EJBMai
 n:ejbCre
@@ -823,38 +823,30 @@
     
-ServiceBean b = new ServiceBea
+EJBMain b = new EJBMai
 n();

Update test program