This content has been marked as final.
Show 3 replies
-
1. Re: EJBSpecUnitTestCase and the MDB Run As related tests
anil.saldhana Sep 5, 2008 2:51 PM (in response to anil.saldhana)The issue with the MDB run as tests was that there was the
<use-caller-identity/>
tag missing in the Level1CallerBean.
MDB->Level1CallerBean->Level2CallerBean->Level3CallerBean
If Level1CallerBean does not define an explicit run-as or use-caller-principal, the run-as defined by the MDB can never be propagated to Level2CallerBean. Level2CallerBean defines use-caller-identity.
Not sure how this worked in 4.x
In JBAS5, we have clear separation of run as and subject principals. More spec-like behavior. -
2. Re: EJBSpecUnitTestCase and the MDB Run As related tests
starksm64 Sep 5, 2008 3:11 PM (in response to anil.saldhana)There were lots of default behavior spread all over, so we probably just picked up a default of use-caller-identity somewhere.
-
3. Re: EJBSpecUnitTestCase and the MDB Run As related tests
anil.saldhana Sep 5, 2008 6:07 PM (in response to anil.saldhana)The EJBSpecUnitTestCase should be passing in full. JBAS-5054 is resolved.