Skip to content

Commit 714cfe8

Browse files
committed
Somewhat nasty hack/workaround to get DS work with JPA on WildFly 8
1 parent 966c5f2 commit 714cfe8

File tree

2 files changed

+10
-0
lines changed
  • jpa
    • datasourcedefinition-annotation-pu/src/main/resources/META-INF
    • datasourcedefinition-webxml-pu/src/main/resources/META-INF

2 files changed

+10
-0
lines changed

jpa/datasourcedefinition-annotation-pu/src/main/resources/META-INF/persistence.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
<jta-data-source>java:app/MyApp/MyDS</jta-data-source>
1212

1313
<properties>
14+
<!--
15+
Very unfortunate workaround to get the data source to work with JPA in WildFly 8.
16+
See https://issues.jboss.org/browse/WFLY-2727
17+
-->
18+
<property name="wildfly.jpa.twophasebootstrap" value="false" />
1419
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create" />
1520
</properties>
1621
</persistence-unit>

jpa/datasourcedefinition-webxml-pu/src/main/resources/META-INF/persistence.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
<jta-data-source>java:app/MyApp/MyDS</jta-data-source>
99

1010
<properties>
11+
<!--
12+
Very unfortunate workaround to get the data source to work with JPA in WildFly 8.
13+
See https://issues.jboss.org/browse/WFLY-2727
14+
-->
15+
<property name="wildfly.jpa.twophasebootstrap" value="false" />
1116
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create" />
1217
</properties>
1318
</persistence-unit>

0 commit comments

Comments
 (0)