[Edevsagetools-commit] SF.net SVN: edevsagetools: [39] trunk/synchro/webapp/src/main
Status: Beta
Brought to you by:
avdyk
|
From: <av...@us...> - 2007-03-19 16:47:09
|
Revision: 39
http://svn.sourceforge.net/edevsagetools/?rev=39&view=rev
Author: avdyk
Date: 2007-03-19 06:38:48 -0700 (Mon, 19 Mar 2007)
Log Message:
-----------
using datasource to configure hibernate
Modified Paths:
--------------
trunk/synchro/webapp/src/main/resources/hibernate.cfg.xml
trunk/synchro/webapp/src/main/webapp/WEB-INF/web.xml
Modified: trunk/synchro/webapp/src/main/resources/hibernate.cfg.xml
===================================================================
--- trunk/synchro/webapp/src/main/resources/hibernate.cfg.xml 2007-03-19 13:33:41 UTC (rev 38)
+++ trunk/synchro/webapp/src/main/resources/hibernate.cfg.xml 2007-03-19 13:38:48 UTC (rev 39)
@@ -4,6 +4,11 @@
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
+ <property name="hibernate.connection.datasource">
+ java:comp/env/jdbc/synchro
+ </property>
+ <!-- Configuration using datasource -->
+ <!--
<property name="hibernate.connection.url">${jdbc.url}</property>
<property name="hibernate.connection.driver_class">
${jdbc.driver}
@@ -14,7 +19,7 @@
<property name="hibernate.connection.password">
${jdbc.password}
</property>
-
+ -->
<property name="hibernate.show_sql">
${hibernate.show_sql}
</property>
Modified: trunk/synchro/webapp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/synchro/webapp/src/main/webapp/WEB-INF/web.xml 2007-03-19 13:33:41 UTC (rev 38)
+++ trunk/synchro/webapp/src/main/webapp/WEB-INF/web.xml 2007-03-19 13:38:48 UTC (rev 39)
@@ -60,6 +60,15 @@
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
+ <!-- DataSource -->
+ <resource-ref>
+ <description>JDBC Synchro</description>
+ <res-ref-name>jdbc/synchro</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ <res-sharing-scope>Shareable</res-sharing-scope>
+ </resource-ref>
+
<!-- No Security at the moment -->
<!--
<security-constraint>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|