First of all, I am not referring to the spring servlet xml file (XXX-servlet.xml) that we put inside the /WEB-INF folder. I am referring to the spring bean configuration file for DI.
My question is how can it be loaded during startup? Can you guys provide a good link that has tutorial on it?Code:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:lang="http://www.springframework.org/schema/lang" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-3.0.xsd"> <bean id="AuthenticateProcessor" class="com.r2dcv.app.web.service.AuthenticateUserServiceProcessor" > </bean> </beans>
I also tested that the xml can be put within the /WEB-INF/classes but it is difficult to modify it without buidling a new EAR/WAR file.


Reply With Quote