File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA 2 and Servlets/JSP

 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • 0
  • 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
  • 0
  • 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,
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic