As per spec, When getCallerPrincipal is called from within the timeout callback method, it returns the container�s representation of the unauthenticated identity.
But when I tried this on
JBOSS, I got an exception.
Question: If I get a question on this, shouuld I go as per the spec.
In fact when I run the code, I find that, there are many concepts which are not implemented as per spec. For instance as per spec, If the timeout method is in a transaction & the transaction is rolled back, the container should call the timeOut method again. But when I tried this, it neve called the method.
SCJP 1.4, SCWCD 1.4, SCBCD 1.5, TOGAF 9, Comptia Cloud+