|
45
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
|
2 |
<beans xmlns="http://www.springframework.org/schema/beans" |
|
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
|
4 |
xmlns:context="http://www.springframework.org/schema/context" |
|
|
5 |
xsi:schemaLocation="http://www.springframework.org/schema/beans |
|
|
6 |
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd |
|
|
7 |
http://www.springframework.org/schema/context |
|
|
8 |
http://www.springframework.org/schema/context/spring-context-3.0.xsd"> |
|
|
9 |
|
|
|
10 |
<!-- Activates various annotations to be detected in bean classes --> |
|
|
11 |
<context:annotation-config /> |
|
|
12 |
|
|
|
13 |
<!-- Configures the annotation-driven Spring MVC Controller programming model. |
|
|
14 |
Note that, with Spring 3.0, this tag works in Servlet MVC only! --> |
|
|
15 |
|
|
|
16 |
<!-- Loads MongoDB configuraton --> |
|
|
17 |
<import resource="mongo-config.xml"/> |
|
|
18 |
|
|
|
19 |
<!--bean id="bayeuxServer" class="org.cometd.server.BayeuxServerImpl" init-method="start" destroy-method="stop"> |
|
|
20 |
<property name="options"> |
|
|
21 |
<map> |
|
|
22 |
<entry key="logLevel" value="3" /> |
|
|
23 |
<entry key="timeout" value="15000" /> |
|
|
24 |
</map> |
|
|
25 |
</property> |
|
|
26 |
</bean--> |
|
|
27 |
<bean id="springConfigurer" |
|
|
28 |
class="org.iri_research.renkan.coweb.SpringConfigurer" |
|
|
29 |
factory-method="getInstance" /> |
|
|
30 |
|
|
|
31 |
<!-- Scans the classpath for annotated components that will be auto-registered as Spring beans. |
|
|
32 |
For example @Controller and @Service. Make sure to set the correct base-package--> |
|
|
33 |
<context:component-scan base-package="org.iri_research.renkan.rest" /> |
|
|
34 |
<context:component-scan base-package="org.iri_research.renkan.coweb" /> |
|
|
35 |
|
|
|
36 |
</beans> |