I am implementing a ejb3 stateless session bean using RAD
IDE. I create a
ejb project. There are two classes I need to create
a)
@Local
public interface MyService {
...
}
b)
@Stateless(mappedName="ejb/MyService")
public class MyServiceImpl implements MyService {
...
}
Question --- In RAD, I create a new EJB project "myservice". Should I put both "MyService.java" and "MyServiceImpl.java" in this "myservice" project ?
or should I only put "MyServiceImpl.java" in "myservice" ejb project and create a separate
java project to put "MyService.java" ?
Does both work and which is better way to do it ?