If an MDB contains @RunAs annotation, then receiving messages fails with
09:26:48,243 ERROR [org.apache.activemq.artemis.ra] (Thread-4 (ActiveMQ-client-global-threads-580560225)) AMQ154004: Failed to deliver message: javax.ejb.EJBAccessException: WFLYEJB0364: Invocation on method: public void org.jboss.as.quickstarts.ejb.remote.mdb.HelloWithRunAsMDB.onMessage(javax.jms.Message) of bean: HelloWithRunAsMDB is not allowed
The @RunAs must not restrict access to a bean (incoming calls), it just says which role will be used for outgoing calls.
- blocks
-
WFLY-8561 RunAsTestCaseEJBMDB is not included in surefire tests in wildfly-ts-integ-basic
- Closed
- clones
-
JBEAP-10279 EJBAccessException when MDB contains RunAs annotation
- Closed