Created
April 12, 2013 07:35
-
-
Save apremalal/5370225 to your computer and use it in GitHub Desktop.
Spring bean configuration for gate web application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:context="http://www.springframework.org/schema/context" | |
| xmlns:gate="http://gate.ac.uk/ns/spring" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| 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://gate.ac.uk/ns/spring | |
| http://gate.ac.uk/ns/spring.xsd | |
| "> | |
| <!-- enable the @PostConstruct and @PreDestroy annotation handling --> | |
| <context:annotation-config /> | |
| <!-- init gate --> | |
| <gate:init gate-home="/WEB-INF/gate-files" plugins-home="/WEB-INF/gate-files/plugins" | |
| site-config-file="/WEB-INF/gate-files/gate.xml" user-config-file="/WEB-INF/gate-files/user-gate.xml" /> | |
| <gate:duplicate id="application"> | |
| <gate:saved-application location="/WEB-INF/gate-files/application.xgapp" /> | |
| </gate:duplicate> | |
| <bean class="com.glasscbe.sprighelloworld.HomeController" id="homeconltroller"> | |
| <property name="application" ref="application" /> | |
| <!-- Pooling configuration, modify this to control pool parameters --> | |
| <gate:pooled-proxy max-size="3" initial-size="3" /> | |
| </bean> | |
| <!-- Root Context: defines shared resources visible to all other web components --> | |
| </beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment