Announcement Announcement Module
Collapse
No announcement yet.
Intercepting service calls in a web application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Intercepting service calls in a web application

    Hi,

    I am currently building a tool that intercepts calls of a System Under Test (SUT) to other applications. Calls to other application will be on a request-response cycle where both request and responses are expressed in XML format.

    The tool will be most useful when testing the SUT and the software development approach is parallel (both the SUT and other applications are built).

    I am currently building this tool using Spring-AOP's schema based approach and the around advice.

    Is there a way to enable cross-cutting automatically (like AspectJ does) without having the following lines in a web application?

    WebApplicationContext context = //instantiation of WebApplication Context;
    context.getBean("targetClassToBeIntercepted");

    Thanks!

  • #2
    Your problem is unclear for me. You defined various aspects at spring config and want them to be applied to the necessary bean joint points. Spring does it best to do that automatically.

    What do you mean when talk about necessity to perform the following code?
    Code:
    WebApplicationContext context = //instantiation of WebApplication Context;
    context.getBean("targetClassToBeIntercepted");
    What is the need to do that?

    Comment

    Working...
    X