[jboss-jira] [JBoss JIRA] (WFLY-8560) EJBAccessException when MDB contains RunAs annotation
Josef Cacek (JIRA)
issues at jboss.org
Tue Apr 11 09:30:00 EDT 2017
[ https://issues.jboss.org/browse/WFLY-8560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josef Cacek moved JBEAP-10289 to WFLY-8560:
-------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-8560 (was: JBEAP-10289)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: EJB
Security
(was: EJB)
(was: Security)
Affects Version/s: 10.1.0.Final
(was: 7.1.0.DR16)
> EJBAccessException when MDB contains RunAs annotation
> -----------------------------------------------------
>
> Key: WFLY-8560
> URL: https://issues.jboss.org/browse/WFLY-8560
> Project: WildFly
> Issue Type: Bug
> Components: EJB, Security
> Affects Versions: 10.1.0.Final
> Reporter: Josef Cacek
> Assignee: David Lloyd
> Priority: Blocker
> Attachments: helloworld-mdb-src.zip, wildfly-helloworld-mdb.war
>
>
> If an MDB contains {{@RunAs}} annotation, then receiving messages fails with
> {noformat}
> 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
> {noformat}
> The {{@RunAs}} must not restrict access to a bean (incoming calls), it just says which role will be used for outgoing calls.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list