This works:
@Stateless @RemoteHome(HelloRemoteHome.class) @SecurityDomain("other") @PermitAll public class HelloPermitAll { ... }
But then this below fails with this error when it extends an abstract class.
javax.ejb.EJBAccessException: WFLYEJB0364: Invocation on method: public abstract com.redhat.middleware.eap.examples.iiop.Response com.redhat.middleware.eap.examples.iiop.HelloRemote.invoke(com.redhat.middleware.eap.examples.iiop.Request) throws java.rmi.RemoteException of bean: HelloPermitAllExtendsAbstract is not allowed ...
@Stateless @RemoteHome(HelloRemoteHome.class) @SecurityDomain("other") @PermitAll public class HelloPermitAllExtendsAbstract extends AbstractEJB { ... }
public abstract class AbstractEJB { ... }
- is related to
-
WFLY-2988 Class-level @RolesAllowed does not affect inherited methods
- Closed