Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about SFSB & security (and jboss)  RSS feed

Michael Maier
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

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?

Thanks a lot,

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!