-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
7.1.0.CR4
-
None
NoSuchEJBException was thrown in the case of stateless session bean -> another stateless session bean invocation because of authentication failure.
But according to EJB 3.2 spec(JSR 345), section: 3.4.3:
It is invalid to reference a session object that does not exist. If a stateful session bean has been removed, attempted invocations on the stateful session bean business interface result in the javax.ejb.NoSuchEJBException. [3] If a singleton session bean did not successfully initialize, attempted invocations on the singleton session bean business interface result in the javax.ejb.NoSuchEJBException. [3] This may not apply to stateless session beans;
Please refer to the Steps to Reproduce above to see how to reproduce the problem.
Problem Description
According to the spec, javax.ejb.NoSuchEJBException should be used for Singleton Session Bean and stateful session bean, but not for the Stateless session bean
- is cloned by
-
EJBCLIENT-261 A stateless bean invocation or lookup should never throw a NoSuchEJBException
- Resolved
- is related to
-
JBEAP-12439 Elytron failed authentication results in different exceptions for stateless and stateful EJBs
- Closed