The Java Persistence API, sometimes called JPA, is a Java programming language specification that describes the management of relational data in applications using the Java platform, the standard version, and the Java platform, Enterprise Edition.
The Java Persistence API was created as part of the work of the JSR 220 expert group. JPA 2.0 is the work of the JSR 317 expert group.
Persistence in this context covers three areas:
the API itself, defined in the javax.persistence package the Java Persistence Query Language (JPQL) object/relational metadata
Enterprise JavaBeans (EJB) is a Java API developed by Sun Microsystems that defines the component architecture for tiered client-server systems.
EJB systems allow developers to focus on the real business architecture of the model, rather than worry about the endless amounts of programming and coding needed to connect all the working parts. This challenge remains for EJB server providers. Developers simply design (or purchase) the necessary EJB components and place them on the server.
Because EJB systems are written in Java, they are platform independent. Being object oriented, they can be embedded in existing systems with little or no recompilation and customization.
source share