I have a services layer in which I have the spring configuration file to wire business delegate,service and dao layer. I have struts/tiles based web layer where I have the action-servlet.xml file to wire action with business delegate. I am using DelegatingTilesRequestProcessor and loading action-servlet.xml using ContextLoaderPlugin configuration in Struts-config.xml.
The problem is ContextLoaderPlugin does not have visibility outside WEB INF directory. And this results in WebApplicationContext unable to load the second config file which is present in services layer.
I do not want to keep the services layer configuration file in web layer(WEB INF), as i also have a JMS channel. And i also want the feature of action classes managed by Spring layer.
Can anyone suggest a solution to this problem?


Reply With Quote