The setSessionContext() method is called when I turn my session bean into a CMP bean (with a @ejb.bean transaction-type="Container" tag).
This does not tell me why the setSessionContext() method is not called for a statefull BMP session bean. Is this a JBoss bug ?
I've got it.
My code did not implement ejbActivate(), nor ebjPassivate().
Now it works.