JPA for WebSphere Application Server

JPA for WebSphere® Application Server is built on the Apache OpenJPA open source project.

Apache OpenJPA and JPA for WebSphere Application Server

Apache OpenJPA is a compliant implementation of the Sun Microsystems JPA specification. Using OpenJPA as a base implementation, WebSphere Application Server employs extensions to provide additional features and utilities for WebSphere Application Server customers. Because JPA for WebSphere Application Server is built from OpenJPA, all OpenJPA functionality, extensions and configurations are unaffected by the WebSphere Application Server extensions. Users running OpenJPA applications do not need to make any changes to use their applications in WebSphere Application Server.

JPA for WebSphere Application Server provides more than compatibility with OpenJPA. JPA for WebSphere Application Server contains a set of tools for application development and deployment. Other features of JPA for WebSphere Application Server include support for XML mapping, JPA Access Intent, enhanced tracing capabilities, command scripts and translated message files. The provider of JPA for WebSphere Application Server is com.ibm.websphere.persistence.PersistenceProviderImpl.

The properties for OpenJPA can be defined in one of two ways. You can either specify the property in the persistence.xml file or by using a Java™ virtual machine (JVM) command line argument on either client or server. See the following examples: For more information on OpenJPA properties, see Chapter 2 on Configuration and the Part 3 Reference sections in the OpenJPA users guide.

The Extension Properties of JPA for WebSphere Application Server may be specified with the openjpa or wsjpa prefix. You can mix the openjpa and wsjpa prefixes as you wish for a common set of properties. Exceptions to the rule are wsjpa specific configuration properties, which should use the wsjpa prefix only. In the event that a JPA for WebSphere Application Server specific property is used with the openjpa prefix, a warning message will be logged indicating that the offending property will be treated as a wsjpa property. The reverse does not hold true for the openjpa prefix. In that case, the offending property will merely be ignored.




Related concepts
Task overview: Storing and retrieving persistent data with the JPA API
Related tasks
Configuring the Java Persistence API (JPA) default persistence provider
Concept topic    

Terms of Use | Feedback

Last updated: Oct 21, 2010 5:30:17 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-nd-iseries&topic=cejb_jpanote
File name: cejb_jpanote.html