开发者

Inject CDI Session Bean in Servlet

开发者 https://www.devze.com 2023-03-17 06:55 出处:网络
I\'m getting in my project inject (@ Inject) CDI Beans scopes Request and Session in a servlet. The problem is that for session beans CDI I\'m not getting that states remain. I try to modify the state

I'm getting in my project inject (@ Inject) CDI Beans scopes Request and Session in a servlet. The problem is that for session beans CDI I'm not getting that states remain. I try to modify the state of the bea开发者_开发技巧n from my servlet but when I try to recover from a page is as if the servlet had failed to change state. Someone could help me?


Hard to help you with so few information. Could you post code and configuration ?

Regarding CDI and Servlet, you also should have a look to Seam Servlet module, it could help you to achieve tour needs differently

0

精彩评论

暂无评论...
验证码 换一张
取 消