I have a SFSB and a lifecycle callback method @PostConstruct. In this method I call getCallerPrinicpal(). The client starts a valid login ( I assume this, because other beans in my security domain work well). According to the specifaction on page 79 (Table 1) this should be ok. But I get an IllegalStateException: Invalid security context for the caller identity.
If I change my SFSB to a SLSB, the call of getCallerPrincipal() returns a principal. I find this very interesting, because according to the specs a call of getCallerPricipal() in a lifecycle callback of a SLSB is not mentioned. I use jboss 4.2.2.
Are there some facts I'm missing or could it be a mistake in the jboss implementation?