I have a managed bean which is in the session scope
@ManagedBean(name = "loginAction")
@SessionScoped
public class LoginAction implements OnReceiveListner, Serializable {}
In a servlet call i am getting this using
LoginAction loginAction = (LoginAction) request.getSession().getAttribute("loginAction");
Now I was wondering if i can call this using CDI for each session. Like
@Inject LoginAction loginAction(current session)
How can i do this