From 8291c801229786cc6cd50f585e81021cd0ec1a72 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Thu, 26 Nov 2009 16:47:32 +0000 Subject: [PATCH] SPR-6447 + added on the fly db configuration to all contexts + removed schema numbers to always pick the latest version --- .../WEB-INF/applicationContext-hibernate.xml | 18 ++++++++---- .../WEB-INF/applicationContext-jdbc.xml | 16 +++++++---- .../webapp/WEB-INF/applicationContext-jpa.xml | 28 +++++++++++++------ src/main/webapp/WEB-INF/petclinic-servlet.xml | 4 +-- 4 files changed, 45 insertions(+), 21 deletions(-) diff --git a/src/main/webapp/WEB-INF/applicationContext-hibernate.xml b/src/main/webapp/WEB-INF/applicationContext-hibernate.xml index bfc166d..39a939a 100644 --- a/src/main/webapp/WEB-INF/applicationContext-hibernate.xml +++ b/src/main/webapp/WEB-INF/applicationContext-hibernate.xml @@ -6,10 +6,10 @@ xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd - http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd - http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd - http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd + http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd + http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> @@ -22,10 +22,18 @@ for the required JAR files. Alternatively you can use another connection pool such as C3P0, similarly configured using Spring. --> + + + + + @@ -32,6 +32,12 @@ p:username="${jdbc.username}" p:password="${jdbc.password}" p:populate="${jdbc.populate}" p:schemaLocation="${jdbc.schemaLocation}" p:dataLocation="${jdbc.dataLocation}"/> + + @@ -27,14 +27,24 @@ + + + +