Can we use JPA 2.1 with JBoss EAP 6.4 release ?

Solution Unverified - Updated -

Issue

Our client's application is using JPA 2.1 but it is not supported by EAP 6.4 as per KCS article.To make it work we have done below change to $JBOSS_HOME/modules/system/layers/base/javax/persistence/api/main/module.xml to use JPA 2.1 jar.

<module xmlns="urn:jboss:module:1.1" name="javax.persistence.api">
  <dependencies>
     <!-- PersistenceUnitInfo needs javax.sql.DataSource -->
    <module name="javax.api" export="true"/>
 </dependencies>
<resources>
     <!-- <resource-root path="hibernate-jpa-2.0-api-1.0.1.Final-redhat-3.jar"/>-->
     <resource-root path="hibernate-jpa-2.1-api-1.0.0.Final.jar"/>
     <!-- Insert resources here -->
</resources>
</module>

After upgrading jpa2.1, our applicatiosns are working, we are planning to use this in test until eap 7 is released. Is this configuration supported by Red Hat, if incase we face any issue with EAP 6.4.3 due to this change ?

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 6.4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content