From 8076f3e62e24f23cc8eb866fe18cc6f00ceb02b8 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Fri, 14 Nov 2014 11:16:18 +0000
Subject: [PATCH] #2021 feature - Added stadard WAR structure to run the application on a Servlet engine

---
 securis/src/main/resources/META-INF/persistence.xml |   20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/securis/src/main/resources/META-INF/persistence.xml b/securis/src/main/resources/META-INF/persistence.xml
index 5b8e9ce..6cde5f7 100644
--- a/securis/src/main/resources/META-INF/persistence.xml
+++ b/securis/src/main/resources/META-INF/persistence.xml
@@ -5,28 +5,16 @@
 	<persistence-unit name="localdb" transaction-type="RESOURCE_LOCAL">
 		<description>SeCuris LocalDB</description>
 		<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
-	<!-- 	<jta-data-source>java:/DefaultDS</jta-data-source>   -->
+		
+	 	<jta-data-source>java:comp/env/jdbc/SeCurisDS</jta-data-source> 
 		
 <!-- 		<class>net.curisit.securis.db.UserSettingsUnits</class>   -->
 
 		<properties>
-			<property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
-<!-- 			<property name="javax.persistence.jdbc.url" value="jdbc:h2:~/.SeCuris/db/securis" />  -->
-			<property name="javax.persistence.jdbc.user" value="curis" />
-			<property name="javax.persistence.jdbc.password" value="53curi5" />
 			<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
+	        <property name="hibernate.connection.datasource" value="java:comp/env/jdbc/SeCurisDS"/>
 
-	        <property name="connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider" />        
-	        <property name="hibernate.c3p0.acquire_increment" value="1" />
-	        <property name="hibernate.c3p0.idle_test_period" value="60" />
-	        <property name="hibernate.c3p0.min_size" value="1" />
-	        <property name="hibernate.c3p0.max_size" value="10" />
-	        <property name="hibernate.c3p0.max_statements" value="50" />
-	        <property name="hibernate.c3p0.timeout" value="0" />
-	        <property name="hibernate.c3p0.acquireRetryAttempts" value="1" />
-	        <property name="hibernate.c3p0.acquireRetryDelay" value="250" />
-
-			<property name="hibernate.show_sql" value="false" />
+			<property name="hibernate.show_sql" value="true" />
 		</properties>
 		
 	</persistence-unit>

--
Gitblit v1.3.2