Java EE 6: How to call Stateful Session Bean from Stateless Session Bean?

前端 未结 3 1755
星月不相逢
星月不相逢 2020-12-31 17:45

I have a Stateful Session Bean (SFSB) which acts as authentication module. In the SFSB I store the current user that is logged in. Moreover I have some facades (which are St

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-31 18:07

    If you inject the stateful session bean inside stateless bean by look-up also does not work because new instance will be created for stateful bean so it does not hold any values like logged user information and etc...

提交回复
热议问题