Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Framework What is the difference between EJB 3.0 and JPA

Have Programming Question? Ask it here!
 
 
 


Alvin
What is the difference between EJB 3.0 and JPA
1 Answer(s)      5 years and 10 months ago
Posted in : Framework



Advertisement
View Answers

November 25, 2008 at 3:57 AM


Hi friend,

The Java Persistence API, sometimes referred to as JPA, is a Java programming language framework
that allows developers to manage relational data in Java Platform, Standard Edition and Java Platform,
Enterprise Edition applications.

Persistence consists of three areas:

* the API, defined in the javax.persistence package
* the Java Persistence Query Language
* object/relational metadata

Hibernate is an Open_source Object-relational_mapping framework for Java


hibernate is a ORM(object relation mapping ) tool which can be used for creating a mapping between plain
java bean objects (POJO) and a persitent storage (rdbms).
The EJB 3.0 specififcation is divided into two parts the first which deals with session and MDBs and
the second which deals with persistence and entity beans.
The latter part is called JPA(java persistance API ).
HIbernate 3.0 implements the JPA specification.
EJB 2.1 is a specification for defining loosely coupled reusable business componenets.ans 2 & 3 )
EJB 2.1 and hibernate serve two different purposes. Hibernate can be co related with the entity beans in EJB 2.1.
HIbernate offers far more extensive features then plain entity beans.still
there are no containers (applicaiton servers) available which fully implement the EJB 3.0 specification.
depending upon the buisness needs hibernate framework can be used in conjuction with EJB2.1 to achieve the JPA abstraction.

For more information on EJB 3.0 visit to :

http://www.roseindia.net/java/jee5/what-is-ejb3.shtml

Thanks


Related Tutorials/Questions & Answers:
What is the difference between EJB 3.0 and JPA - Framework
What is the difference between EJB 3.0 and JPA   What is the difference between EJB 3.0 and JPA. How can they work together. Does EJB 3.0 need... persistance API ). HIbernate 3.0 implements the JPA specification. EJB 2.1
Difference between EJB 2 and EJB 3 - EJB
Difference between EJB 2 and EJB 3  I know we dont implement home and remote interfaces. 1)Do we have ejb-jar.xml in EJB 3.0...? What do they exactly do? 4) How does the bean lookup start in EJB 3 and how
Advertisements
What is the difference between the >> and >>> operators?
What is the difference between the >> and >>> operators?   hi, What is the difference between the >> and >>> operators? Thanks
Difference between JDBC , Entity Beans in EJB 3.0,Hibernate - EJB
Difference between JDBC , Entity Beans in EJB 3.0,Hibernate  What is difference between JDBC 2.0, Entity Bean in EJB 2.0, Hibernate, Entity Bean in EJB 3.0  Hi Friend, Please visit the following links to know about
what is the difference between extends and implements
what is the difference between extends and implements  difference between extends and implements
what is the difference between extends and implements
what is the difference between extends and implements  difference between extends and implements
What are the differences between EJB and Spring
What are the differences between EJB and Spring   Hi, What are the differences between EJB and Spring Thanks
What is the difference between PHP4 and PHP5?
What is the difference between PHP4 and PHP5?  What is the difference between PHP4 and PHP5
What is difference between a PROCEDURE & FUNCTION ?
What is difference between a PROCEDURE & FUNCTION ?  What is difference between a PROCEDURE & FUNCTION
What is the difference between $message and $$message?
What is the difference between $message and $$message?  What is the difference between $message and $$message
what is the Difference between weblogic and jboss?
what is the Difference between weblogic and jboss?  what is the Difference between weblogic and jboss
what is the difference between pop and oop
what is the difference between pop and oop  what is the difference between pop and oop
What is the difference between hibernate and spring
What is the difference between hibernate and spring  Hi, What is the difference between hibernate and spring. Thanks
What is the difference between a constructor and a method?
What is the difference between a constructor and a method?  Hi, What is the difference between a constructor and a method?   Hi, I have found a good link of Java program related to difference between constructor
What is difference between the java and javascript?
What is difference between the java and javascript?  What is the difference beteen the java and javascript?   Hello Friend, Read Here Thanks
use of ejb 3.0
use of ejb 3.0  what is use of ejb 3.0
What is the difference between a JDK and a JVM?
What is the difference between a JDK and a JVM?  Hi, What is the difference between a JDK and a JVM? Thanks,   Hi, JDK is stand... to compile your source files using a JVM. For more difference between JDK and JVM
What is difference between Path and Classpath?
What is difference between Path and Classpath?   hi What is difference between Path and Classpath? thanks   Hi, The Path & Classpath are used for operating system level environment variales. We mostly use Path
What is difference between TRUNCATE & DELETE
What is difference between TRUNCATE & DELETE   What is difference between TRUNCATE & DELETE?   Hi, The DELETE command is used to remove rows from a table. A WHERE clause can be used to only remove some rows
What is EJB 3.0?
What is EJB 3.0       This lesson introduces you with EJB 3.0, which is being used extensively for developement of robust, scalable and secure applications. What is EJB
What is difference between the java and javascript?
What is difference between the java and javascript?  What is the difference beteen the java and javascript?   Hello Friend, Difference: 1) Java is a Object Oriented programming language developed by Sun Microsystems
What is the difference between ereg_replace() and eregi_replace()?
What is the difference between ereg_replace() and eregi_replace()?  What is the difference between eregreplace() and eregireplace
What is the difference between the functions unlink and unset?
What is the difference between the functions unlink and unset?  What is the difference between the functions unlink and unset
What are the difference between abstract class and interface?
What are the difference between abstract class and interface?  What are the difference between abstract class and interface
What’s the difference between include and require?
What?s the difference between include and require?  What?s the difference between include and require
what is the difference between distributed application and web application?
what is the difference between distributed application and web application?  what is the difference between distributed application and web application
What’s the difference between load() and get()?
What?s the difference between load() and get()?   Hi, What?s the difference between load() and get()? thanks
What is the difference between JSF, Servlet and JSP?
What is the difference between JSF, Servlet and JSP?  What is the difference between JSF, Servlet and JSP
What is difference between singleton and prototype bean?
What is difference between singleton and prototype bean?  Hi, What is difference between singleton and prototype bean? Thanks
what is difference between objectan primitive? - Java Beginners
what is difference between objectan primitive?  whatis difference between object and primitive
what is the difference between productList==null and productList.size()==0
what is the difference between productList==null and productList.size()==0  what is the difference between productList==null and productList.size()==0? here productList is of type LIST
What is the difference between the Boolean & operator and the && operator?
What is the difference between the Boolean & operator and the && operator?   Hello, What is the difference between the Boolean & operator and the && operator? thanks
What are difference between Bean Factory and Application Context ?
What are difference between Bean Factory and Application Context ?  Hi, What are difference between Bean Factory and Application Context
what is the difference between the eclipse and myeclipse - IDE Questions
what is the difference between the eclipse and myeclipse  what is the difference between the eclipse and myeclipse  Hi Friend, Difference: Eclipse is an IDE or platform for developing, whereas MyEclipse
What is the difference between component and tag in JSF?
What is the difference between component and tag in JSF?  Please let me know,becaus i am new to jsf and am confusing
What is the difference between UNION and UNION ALL in SQL?
What is the difference between UNION and UNION ALL in SQL?  What is the difference between UNION and UNION ALL in SQL?   Hi, UNION is an SQL keyword used to merge the results of two or more tables using a Select
What is the difference between IN and BETWEEN, that are used inside a WHERE clause?
What is the difference between IN and BETWEEN, that are used inside a WHERE clause?  What is the difference between IN and BETWEEN, that are used inside a WHERE clause?   Hi, The BETWEEN clause is used to fetch a range
What is the difference between GET and POST method?
What is the difference between GET and POST method?  In PHP, both GET... there is a lots of difference between the both. Can anyone please explain...;difference between get and post method in PHP POST method is more secure than GET
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?  What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?   Hi, Both HAVING and WHERE clause used for specifying the search condition in SQL
what is difreence between javabeans and enterprise beans - EJB
what is difreence between javabeans and enterprise beans  what is difreence between javabeans and enterprise beans  Hi Friend... while EJB is designed to work in distributed environment using rmi/iiop protocol
what is the difference between frontcontroller and actionservlet? - Struts
what is the difference between frontcontroller and actionservlet?   Hi Roseindia, sub: what is the difference between frontcontroller and actionservlet? Thank you. RamehReddy T.  frontcontroller
What is the difference between an if statement and a switch statement?
What is the difference between an if statement and a switch statement?   Hi, What is the difference between an if statement and a switch statement? Thanks,   Hi, The if statement gives options to select one option
What is the difference between a break statement and a continue statement?
What is the difference between a break statement and a continue statement?   Hi, What is the difference between a break statement and a continue statement? Thanks,   Hello, In Java programming language supports 3
What is the difference between static and dynamic SQL?
What is the difference between static and dynamic SQL?  What is the difference between static and dynamic SQL?   Hi, Static SQL is SQL statements in an application that do not change at runtime and, therefore, can
what is the difference between jdk 1.4 and 1.5 and 1.6
what is the difference between jdk 1.4 and 1.5 and 1.6  what is the difference between jdk 1.4 and 1.5 and 1.6   Java 1.4 Features...: automatic conversions between primitive types (such as int) and primitive wrapper
What is the difference between mysql_fetch_object and mysql_fetch_array?
What is the difference between mysql_fetch_object and mysql_fetch_array?  What is the difference between mysqlfetchobject and mysqlfetcharray
what is diffrence between the spring and ejb which is better for small application - Spring
what is diffrence between the spring and ejb which is better for small application  what is diffrence between the spring and ejb which is better... spring application  Hi Friend, Difference between Spring and EJB
What?s the difference between md5(), crc32() and sha1() crypto on PHP?
What?s the difference between md5(), crc32() and sha1() crypto on PHP?  What?s the difference between md5(), crc32() and sha1() crypto on PHP
What is the difference between md5() and crc32() and sha1() crypto on PHP?
What is the difference between md5() and crc32() and sha1() crypto on PHP?  What?s the difference between md5(), crc32() and sha1() crypto on PHP
What’s the difference between accessing a class method via -> and via ::?
What?s the difference between accessing a class method via -> and via ::?  What?s the difference between accessing a class method via -> and via
 

 

 

DMCA.com