Does the use of @Remote(interface.class) in the ejb have any impact?
In other words. What's the diference between this:
@Remote(MyRemoteInterface.class)
@Stateless
public class MyBean implements MyRemoteInterface {
And this:
@Stateless
public class MyBean implements MyRemoteInterface {
When the inteface looks like this:
@Remote
public interface MyRemoteInterface {
Both solutions works fine on JBoss 6.4 when using the bean through the remote inteface.
There is no difference, its just different way of writing it, see 2.1.2 of the EJB 3.1 spec:
The interface can be annotated on with @Local or @Remote on the interface class, or annotated with @Local (.class) or @Remote (.class) on the bean class