[Lada-commits] [PATCH 3 of 9] !!!CAUTION!!! Changed persistence unit JNDI name!

Wald Commits scm-commit at wald.intevation.org
Fri Dec 18 18:01:43 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1450456944 -3600
# Node ID 90343e38225fa011b8cbfaa4208e227f28d4befc
# Parent  e49494d974370a8d8edf041c2778c690922861d0
!!!CAUTION!!! Changed persistence unit JNDI name!

If you are updating to this version you have to change the JNDI name of the
persistence units in the application server.

diff -r e49494d97437 -r 90343e38225f src/main/resources/META-INF/persistence.xml
--- a/src/main/resources/META-INF/persistence.xml	Fri Dec 18 17:34:40 2015 +0100
+++ b/src/main/resources/META-INF/persistence.xml	Fri Dec 18 17:42:24 2015 +0100
@@ -5,8 +5,7 @@
     <!-- PU for bund datasource. Maps to the schema 'bund' in the Lada database. -->
     <persistence-unit name="bund">
         <!-- The JTA datasource configured in the Wildfly AS -->
-        <jta-data-source>java:/jboss/lada-bund</jta-data-source>
-        <exclude-unlisted-classes>false</exclude-unlisted-classes>
+        <jta-data-source>java:jboss/lada-bund</jta-data-source>
         <properties>
         	<!-- The JNDI name for lookups in the application -->
             <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
@@ -19,7 +18,7 @@
    	</persistence-unit>
    	<persistence-unit name="land">
         <!-- The JTA datasource configured in the Wildfly AS -->
-   	    <jta-data-source>java:/jboss/lada-land</jta-data-source>
+   	    <jta-data-source>java:jboss/lada-land</jta-data-source>
        	<exclude-unlisted-classes>false</exclude-unlisted-classes>
     	<properties>
         	<!-- The JNDI name for lookups in the application -->
@@ -33,7 +32,7 @@
     </persistence-unit>
     <persistence-unit name="stamm">
         <!-- The JTA datasource configured in the Wildfly AS -->
-        <jta-data-source>java:/jboss/lada-stamm</jta-data-source>
+        <jta-data-source>java:jboss/lada-stamm</jta-data-source>
         <properties>
         	<!-- The JNDI name for lookups in the application -->
             <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
diff -r e49494d97437 -r 90343e38225f src/test/resources/META-INF/test-persistence.xml
--- a/src/test/resources/META-INF/test-persistence.xml	Fri Dec 18 17:34:40 2015 +0100
+++ b/src/test/resources/META-INF/test-persistence.xml	Fri Dec 18 17:42:24 2015 +0100
@@ -3,12 +3,10 @@
    xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
     <persistence-unit name="bund" transaction-type="JTA">
-        <!--provider>org.hibernate.jpa.HibernatePersistenceProvider</provider-->
-        <jta-data-source>java:/jboss/lada-bund</jta-data-source>
+        <jta-data-source>java:jboss/lada-bund</jta-data-source>
         <exclude-unlisted-classes>false</exclude-unlisted-classes>
         <properties>
             <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
-            <!-- Properties for Hibernate -->
             <property name="hibernate.show_sql" value="false" />
             <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
             <property name="hibernate.hbm2ddl.auto" value="none"/>
@@ -17,7 +15,7 @@
    	</persistence-unit>
    	<persistence-unit name="land">
    	    <provider>org.hibernate.ejb.HibernatePersistence</provider>
-        <jta-data-source>java:/jboss/lada-land</jta-data-source>
+        <jta-data-source>java:jboss/lada-land</jta-data-source>
        	<exclude-unlisted-classes>false</exclude-unlisted-classes>
     	<properties>
             <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
@@ -28,7 +26,7 @@
     </persistence-unit>
     <persistence-unit name="stamm">
         <provider>org.hibernate.ejb.HibernatePersistence</provider>
-        <jta-data-source>java:/jboss/lada-stamm</jta-data-source>
+        <jta-data-source>java:jboss/lada-stamm</jta-data-source>
         <properties>
             <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
             <property name="hibernate.show_sql" value="false" />


More information about the Lada-commits mailing list