mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
Update test program
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user