Im learning j2ee , pardon me if questions appear very basic.
In httpsession session ID is stored in client side and the data associated with it is stored in server side.
When stateful session bean interacts with web client a browser makes an initial request to a Java EE web application it gets a JSESSIONID that the server can associate with a specific HTTPSession instance. By holding on to this JSESSIONID, the browser can provide it with each follow-up request and this will activate the same http session server-side. Ref: Using a Stateful Session Bean to track an user's session
Now when I use CDI @SessionScoped on sfb does that mean just JSESSIONID will be returned for that SFB or EJB container (?) will store another copy of sfb on server side ? (session.setAttribute(SFB-Another-Reference) )
Now when I use CDI @RequestScoped on sfb is it useless as SFB lives till session?
Now when I use CDI @SessionScoped on slb is it useless to use @SessionScoped since slb live only for method invocation ?
Now when I use CDI @SessionScoped on POJO Does that mean the EJB container (?) store the pojo in session. (session.setAttribute(POJO))
Can CDI differentiate between SFB ,SLB and a POJO ?