This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA 2 and Servlets/JSP

 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Would you use JPA2 with Servlets/JSP instead of JSF?

If not, why?

Thank you.
 
Mike Keith
author
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rogerio,

That is not really a question relating to persistence so much as presentation technology. Both servlets and JSF are integrated with JPA, so you can use either one. If you use JSF in a Java EE 6 container like Glassfish, though, then you could use the new Contexual Dependency Injection spec to share managed beans across JSF and the component layer, which makes things easier to code.

Hope this helps,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic