aspose file tools*
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
Author

Session in JSF

Ramil Huseynov
Greenhorn

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: 16014
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Session in JSF