File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Session in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Session in JSF" Watch "Session in JSF" New topic

Session in JSF

Ramil Huseynov

Joined: Jun 07, 2011
Posts: 4
how can i work with sessions in JSF... i use JSF, Session Facade, Entity bean.
Am i need use Transfer object tecnology?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

I think there may be some confusion here about which type of "session" you're referring to.

JSF works with J2EE HttpSessions seamlessly. It will create sessions as needed and store objects as session attributes using the Managed Bean capabilities of JSF.

However, it sounds like you are (also?) referring to EJB Session Beans.

JSF has no built-in persistence support, so the persistence code in your JSF app is up to you and would be coded in the same way as non-JSF persistence code.

DTO's are pretty much obsolete in EJB3, since the actual entity objects can be used directly in non-persistence code, but that's EJB, not JSF.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Session in JSF
It's not a secret anymore!