Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
where to declare application context xml file Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • where to declare application context xml file


    We have implemented Spring IOC in our Enterprise java project. Now our manager want's me to implement AOP interceptors for logging messages at method level. I have written an xml file for the interceptors. Could any one please tell me where to define this xml file, as we will be declaring the multiple context files in deployment descriptor under contextConfigLocation in case of Spring MVC. Do I need to do the same in my case also. For clarification we have implemented IOC at service and Dao level.

    Please help me out if any one is having solution.


  • #2
    As you said you made an XML file for interceptor configuration, it is required to put under "contextConfigLocation" in the application's deployment descriptor.

    Thats how the spring framework will come to know about the interceptors.

    You would have tried this, I know, and if not then try this and if it doesn't work then show your configurations.

    I mean your context file and this new XML file.