Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we consider JSF & JPA as framework ?

 
Suresh Gopalakrishnan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to know whether JSF and JPA can be considered as framework..

I think these are specification given by Sun with reference implementation. Any vendor can provide implementation for these technologies.

In short, A framework is a set of classes/libraries for the standard services, which are used to reduce the amount of coding in an applictaion.

So just wondering whether JSF, JPA, & EJB are these technologies can be considered as JEE frameworks like Spring, Hibernate etc. ?

 
Ryan Fernandes
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes. One can, reasonably, look at the JEE framework consisting of Component Based Frameworks (like EJB, JSF, JPA...) etc

I just want to know whether JSF and JPA can be considered as framework..
I think these are specification given by Sun with reference implementation


Well, the entire JEE is a spec too, isn't it?

Cheers
 
Kumar Ala
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say both JSF & JPA are API. They are not frameworks.
 
Alex Sharkoff
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"JSF technology is a user interface framework for building Java-based web applications that run on the server side, and render the user interface back to the client. " as found on http://java.sun.com/developer/technicalArticles/GUI/JavaServerFaces. JSF helps a user build web applications around Model-View-Controller design pattern. FacesServlet acts as a controller (front controller) that delegates to JSF managed JavaBeans and dispatches requests to view JSP pages. Managed JavaBeans can act as application controllers that use model components from business layer (e.g. session beans) and provide the means to get/set model data. JSP pages format and render model data in the managed JavaBeans.

I'd consider Servlet, JPA and EJB to be APIs that can be used in various frameworks.
 
Ashu Sharma
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF,JPA and EJB's are specs.

Now the vendors including Sun provide their implementation for these specs.

for example JSF has following implementations

Sun -- Sun Mojarra( or Sun RI)
Apache -- My faces

Similarly SUN has the RI for JPA and Hibernate has also got JPA implementation

Thanks
Ashu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic