I am developing a java EE web application using JSF with a shopping cart style process, so I want to collect user data across multiple pages and then do something with it.
I thought of using a session with an EJB 3 bean state, but my research makes me think that SFSB is not tied to the http client session, so I would have to manually track it through httpSession, some side questions here.,.
1) Why it is called a bean session, as far as I can see, it has nothing to do with the session, I could achieve this by saving the pojo in the session.
2) What is the point of inserting if everything that I am going to introduce? Is this a new instance of this SFSB, then could I also use pojo?
Thus, the main problem that I see is written throughout the fact that JSF is a presentation technology, so it cannot be used for logic, but it seems to be an ideal option for collecting user data.
I can set the scope of the JSF bean session as the managed property of my entire beans request, which means it was entered into them, but unlike SFSB, the bean-bound JSF session is bound to the http session and therefore the same instance always entered until the http session has been canceled.
So I have several levels
Level 1) A managed JSF request with beans span that deals with presentation, 1 per page.
Level 2) A managed JSF session limited by a bean that has the values specified in it by the beans query.
Level 3) A stateless EB session that runs data logic in a JSF session in a bean.
Why is it so bad?
An alternative is to use SFSB, but then I have to enter it in my initial bean request and then save it in an http session and grab it in every subsequent bean request - it just seems messy.
Or I could just keep everything in the session, but this is not ideal, because it involves using alphabetic keys and castings. and the like .. and the like what a prone mistake., and randomly!
Any thoughts are appreciated, I feel like I'm struggling with this technology, not with it.
thanks