Two persistence providers are included in WebSphere® Application Server: JPA for WebSphere Application Server persistence provider and Apache OpenJPA persistence provider. The JPA for WebSphere Application Server persistence provider is the default provider for WebSphere Application Server. You can use one of the two providers, or a third-party persistence provider, as the default provider.
On the application server's Feature Pack for Enterprise JavaBeans (EJB) 3.0, the default persistence provider, default Java Transaction API (JTA) datasource Java Naming and Directory Interface (JNDI) name, and default non-JTA datasource JNDI name, values are set through the following Java virtual machine (JVM) properties: com.ibm.websphere.jpa.default.provider, com.ibm.websphere.jpa.default.jta.datasource, and com.ibm.websphere.jpa.default.nonjta.datasource. Support for these properties has been deprecated. Any values that were set through these properties will be displayed as default values on this panel. Any change to these values through the Administrative Console panel will override any values set via the JVM properties.
Property | Apache OpenJPA default value | JPA for WebSphere Application Server default value |
---|---|---|
openjpa.Compatibility | StrictIdentityValues=false | StrictIdentityValues=true |
openjpa.RuntimeUnenhancedClasses | supported | warn |
openjpa.DynamicEnhancementAgent | true | false |
Error Message is:org.codehaus.jackson.map.JsonMappingException: Can not construct instance of org.apache.openjpa.util.java$util$GregorianCalendar$proxy, problem: no suitable creator method found at [Source: org.apache.http.conn.EofSensorInputStream@d83fbd5; line: 1, column: 4094]
If no JPA provider is configured in the <provider> element of the persistence.xml file within an EJB module, the default JPA provider that is currently configured for this server is used. The WebSphere Application Server is packaged with the JPA for WebSphere Application Server persistence provider defined as the default provider. However, it is possible to override this default and specify a different default via the Websphere Administrative Console.
You can set your default persistence provider in one of two ways. Use one of the following procedures.
In this information ...Subtopics
| IBM Redbooks, demos, education, and more(Index) |