Support for Java Persistence is available to Java EE 5 and Java SE applications running on the Java EE 5 platform. If you have a J2EE 1.4 application it is possible to use Java Persistence if the target container is running on the Java EE 5 platform. The container does not need to be a Java EE 5 container.
If your target server is not a Java EE 5 container, you can add support for Java Persistence functionality by adding the TopLink Essentials library to the project or the classpath of the container. The TopLink Essentials library contains the necessary libraries to support Java Persistence. The TopLink Essentials library is bundled with the IDE.
To add Java Persistence support to the project:
When you add the TopLink Essentials library to your project, the TopLink Essentials library will be packaged with the EAR or WAR file when you build the project.