- Context Param
<.param-name.>contextConfigLocation<./param-name.>
<.value.>/WEB-INF/spring/applicationContext.xml<./param-value.>
<./context-param.>
<.context-param.>
<.param-name>log4jExposeWebAppRoot<./param-name>
<.param-value>false<./param-value..>
<./context-param.>
Dispatcher Servlet
<.servlet-name.>searchApp<./servlet-name.>
<.servlet-class.>com.ea.sw.search.web.servlet.SearchDispatcherServlet<./servlet-class.>
<.param-name.>contextConfigLocation<./param-name.>
<.param-value.>/WEB-INF/spring/webContext.xml<./param-value.>
<./init-param.>
<.load-on-startup.>1<./load-on-startup.>
<./servlet.>
WebContext.xml
- URL Mapping
<.property name="mappings".>
<.props.>
<.prop key="/all">allSearchSequentialController<./prop.>
<./props>
<./property.>
<.property name="alwaysUseFullPath".>
<.value>true<./value.>
<./property.>
<./bean.>
- ArrayList
<.constructor-arg.>
<.list.>
<.ref bean="groupSearchHandler"/.>
<.ref bean="mediaSearchHandler"/.>
<.ref bean="personaSearchHandler"/.>
<./list.>
<./constructor-arg.>
<./bean.>
- ArrayList - Load Properties
<.constructor-arg.>
<.list.>
<.value.>classpath:default.properties<./value.>
<.value.>classpath:index.properties<./value.>
<./list.>
<./constructor-arg.>
<./bean.>
- Property Placeholder Config
<.property name="locations" ref="locations"/.>
<./bean.>
- Application Properties
<.property name="properties".>
<.bean class="org.springframework.beans.factory.config.PropertiesFactoryBean".>
<.property name="locations" ref="locations"/.>
<./bean.>
<./property.>
<./bean.>
- Map
<.constructor-arg.>
<.map.>
<.entry key="m".><.value>MINUTE<./value.><./entry.>
<.entry key="h".><.value>HOUR<./value.><./entry.>
<.entry key="d".><.value>DAY<./value.><./entry.>
<.entry key="y".><.value>YEAR<./value.><./entry.>
<./map.>
<./constructor-arg.>
<./bean.>
- Data Source
<.property name="driverClassName".><.value.>${jdbc.driverClassName}<./value.><./property.>
<.property name="url".><.value.>${jdbc.url}<./value.><./property.>
<.property name="username".><.value.>${jdbc.username}<./value.><./property.>
<.property name="password".><.value.>${jdbc.password}<./value.><./property.>
<./bean.>
- JDBC Templae
<.property name="dataSource" ref="searchDS"/.>
<.property name="fetchSize" value="${jdbc.fetch.size}"/.>
<./bean.>
- Scheduler Configurations
<.property name="triggers".>
<.list.>
<.ref bean="mediaIndexTrigger" /.>
<./list.>
<./property.>
<./bean.>
<.bean id="mediaIndexTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean".>
<.property name="startDelay" value="${media.index.start}" /.>
<.property name="repeatInterval" value="${media.cron.interval}" /.>
<.property name="jobDetail".>
<.bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean".>
<.property name="targetObject" ref="mediaIndex" /.>
<.property name="targetMethod" value="index" /.>
<.property name="concurrent" value="false" /.>
<./bean.>
<./property.>
<./bean.>
<.bean id="mediaIndex" class="com.ea.sw.search.indexer.impl.DefaultIndexImpl".>
<./bean.>
No comments:
Post a Comment