Update test program

This commit is contained in:
luchua-bc
2021-02-23 14:41:44 +00:00
parent 9eb8ec7da5
commit 45f9125bfa

View File

@@ -3,7 +3,7 @@ public class EJBMain implements SessionBean {
* Create the session bean (empty implementation)
*/
public void ejbCreate() throws javax.ejb.CreateException {
System.out.println("ServiceBean:ejbCreate()");
System.out.println("EJBMain:ejbCreate()");
}
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {
@@ -24,7 +24,7 @@ public class EJBMain implements SessionBean {
// BAD - Implement a main method in session bean.
public static void main(String[] args) throws Exception {
ServiceBean b = new ServiceBean();
EJBMain b = new EJBMain();
b.doService();
}