Switch to unified view

a b/recommendation-engine/src/main/webapp/WEB-INF/conf/beans.xml
1
<beans xmlns="http://www.springframework.org/schema/beans"
2
  xmlns:context="http://www.springframework.org/schema/context"
3
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
4
  xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
5
  xsi:schemaLocation="
6
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
7
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
8
      http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd 
9
      http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd"
10
  default-lazy-init="false">
11
12
  <import resource="classpath:META-INF/cxf/cxf.xml" />
13
  <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
14
15
  <context:component-scan base-package="eu.alfred.recommendation_engine" />
16
17
  <jaxrs:server id="recommendationServices" address="/recommendationServices">
18
      <jaxrs:providers>
19
          <bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider" />  
20
      </jaxrs:providers>
21
      <jaxrs:serviceBeans>
22
          <ref bean="recommenderServiceImpl" />
23
      </jaxrs:serviceBeans>
24
      <jaxrs:extensionMappings>
25
          <entry key="xml" value="application/xml" />
26
          <entry key="json" value="application/json" />
27
      </jaxrs:extensionMappings>
28
  </jaxrs:server> 
29
30
     <bean id="recommenderServiceImpl" class="eu.alfred.recommendation_engine.RecommenderServiceImpl"/>
31
    
32
</beans>