As I can understand, @Localbean on an EJB is used when one doesn't want to define any interface for the EJB. Then I saw many websites, including IBM1, that show something like this:
@Stateless
@Local(LocalA.class)
@Remote(RemoteA.class)
@LocalBean
public class MeineEJB {
public void localA() {}
public void remoteA() {}}
If it is a no-interface EJB, then what is the useage of @Local(LocalA.class) in this code? (I assume that it is an interface.) And also, I don't understand @LocaBean and @Remote at the same time. @LocalBean says it is a local bean, but we defined it as a remote as well. Then why the annotation title is @LocalBean at the first place?
Thanks for reading folks.