This content has been marked as final. Show 5 replies
is the following right:
by default, weblogic 10.3.4 use toplink/eclipselink and jpa 1.0 if not apply patch, but in our application, we can specify to use hibernate in <provider> tag of persistence.xml and if that hibernate version jar allow jpa2.0, then no need to upgrade the weblogic patch, can still use hibernate and jpa2.0 function?
To enable JPA 2.0 support in WLS 10.3.4, you must download and install a WebLogic Server patch 9923849
You should download hibernate jar and place in classpath
WebLogic Server includes a lib subdirectory, located in the domain directory, that you can use to add one or more JAR files to the WebLogic Server system classpath when servers start up. The lib subdirectory is intended for JAR files that change infrequently and are required by all or most applications deployed in the server, or by WebLogic Server itself. You can use the lib directory to store third-party utility classes that are required by all deployments in a domain. If you update a JAR in the lib directory, you must reboot all servers in the domain in order for applications to realize the change.If you need to share a JAR file or Java EE modules among several applications, use the Java EE shared library feature.
For using hibernate as a persistence layer, you should change persistence.xml like this:
Thanks & Regards,
I have no oracle support ID.
but reference to
installing manually part, I modify the commEnv.cmd as follow:
@rem enabling jpa2.0
@rem Set BEA Home
is my WLS 10.3.4 support JPA 2.0 now? how to test it?
If you don't have Oracle Support ID you can make container JPA 2.0 complaint by following the below URL
If JPA 2.0 jar javax.persistence_126.96.36.199_2-0-0.jar is picked up during the start of server and during startup this JAR should load first. Then the container becomes JPA 2.0 Complaint.
To test, you need to write a sample JPA 2.0 complaint program and test.
Thanks & Regards,