Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

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.

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

  • where to declare application context xml file

    Hi,

    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.

    Thanks,
    Shiva

  • #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.

    Comment

    Working...
    X