I am building a simple Stateless session bean, so I have 3 files:
1. EJB - xyzEJB.java
package com;
public class xyzEJB implements SessionBean {
//defined all call back methods
public String method1(String x) throws RemoteException{
return x + " SSB";
}
}
2. remote interface - xyz.java
package com;
public interface xyz extends EJBObject {
public String method1(String x) throws RemoteException;
}
3. Home interface: xyzEJBHome.java
package com;
public interface xyzEJBHome extends EJBHome {
public xyz create() throws CreateException,RemoteException;
}
********
All the 3 files are in my c:\com folder.
I could successfully comple the 1st 2 files, ie.. the EJB and remote interface..but when I compile the home interface I get this error:
xyzEJBHome.java:11: cannot resolve symbol
symbol : class xyz
location: interface com.xyzEJBHome
public xyz create() throws CreateException, RemoteException;
^
1 error
1. EJB - xyzEJB.java
package com;
public class xyzEJB implements SessionBean {
//defined all call back methods
public String method1(String x) throws RemoteException{
return x + " SSB";
}
}
2. remote interface - xyz.java
package com;
public interface xyz extends EJBObject {
public String method1(String x) throws RemoteException;
}
3. Home interface: xyzEJBHome.java
package com;
public interface xyzEJBHome extends EJBHome {
public xyz create() throws CreateException,RemoteException;
}
********
All the 3 files are in my c:\com folder.
I could successfully comple the 1st 2 files, ie.. the EJB and remote interface..but when I compile the home interface I get this error:
xyzEJBHome.java:11: cannot resolve symbol
symbol : class xyz
location: interface com.xyzEJBHome
public xyz create() throws CreateException, RemoteException;
^
1 error