aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp/src/main/resources
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2016-10-09 21:20:45 +0200
committerMartin Stockhammer <martin_s@apache.org>2016-10-09 21:20:45 +0200
commitb7174c444032ce5431fdf9d96cf7bd82060536cd (patch)
tree74deeee62aa7b7713c287ff4c71bb838377ad9ee /archiva-modules/archiva-web/archiva-webapp/src/main/resources
parent0cc2733ca000451ebc26f2f76178d64bfdc92f36 (diff)
downloadarchiva-b7174c444032ce5431fdf9d96cf7bd82060536cd.tar.gz
archiva-b7174c444032ce5431fdf9d96cf7bd82060536cd.zip
Adding JPA provider as user manager
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp/src/main/resources')
-rwxr-xr-xarchiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml
index 06cf58a64..d295d09c5 100755
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml
@@ -21,13 +21,14 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
- xmlns:util="http://www.springframework.org/schema/util"
+ xmlns:util="http://www.springframework.org/schema/util" 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-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/util
- http://www.springframework.org/schema/util/spring-util-3.0.xsd"
+ http://www.springframework.org/schema/util/spring-util-3.0.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"
default-lazy-init="true">
<context:annotation-config/>
@@ -48,5 +49,15 @@
+ <jee:jndi-lookup id="dataSource" jndi-name="java:/comp/env/jdbc/redbackjpa" />
+ <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
+ <property name="dataSource" ref="dataSource" />
+ <property name="jpaVendorAdapter" >
+ <bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
+ </property>
+ </bean>
+
+
+
</beans> \ No newline at end of file