|What is the correct location for defining "filterChainProxy"? [message #1064332]
||Tue, 18 June 2013 14:50
| Raghuram Devarakonda
Registered: November 2012
I have defined FilterChainProxy in my web.xml like so:
Now if I define the bean "filterChainProxy" in META-INF/spring/app-context.xml, it works fine. How ever, Virgo user guide mentions the following note:
"Spring (and Spring DM) application context XML files should generally be placed in a bundle's META-INF/spring directory, but for a web application, these files must be placed in the WEB-INF directory.
Placing a web application's Spring application context XML files in the META-INF/spring directory produces unpredictable results since Spring DM will attempt to build an application context independently of, and asynchronously from, the web application."
So I am trying to find a way to move the filterChainProxy definition to some place under WEB-INF. I first tried to put it in "api-servlet.xml" ("api" being name of the servlet) but that didn't work.
Can some one please explain the recommended way of defining filterChainProxy and any other beans in a web application? We also have META-INF/spring/osgi-context.xml to define OSGi services. Where would that file go if we can't put it in META-INF/spring based on above warning from Virgo docs?
Powered by FUDForum
. Page generated in 0.11271 seconds