Please could you add an example which shows two Stateless session beans which both implement the same remote interface without annotating the interface as remote.
In other words:
public interface RemoteI
{
}
public interface LocalI
{
}
@Stateless(name = "BeanOne")
@Local(LocalI.class)
@Remote(RemoteI.class)
public class BeanOne implements LocalI, RemoteI
{
}
@Stateless(name = "BeanTwo")
@Local(LocalI.class)
@Remote(RemoteI.class)
public class BeanTwo implements LocalI, RemoteI
{
}
Please could you add an example which shows two Stateless session beans which both implement the same remote interface without annotating the interface as remote.
In other words: