Results 1 to 2 of 2

Thread: Intercepting service calls in a web application

  1. #1
    Join Date
    Oct 2008
    Posts
    1

    Default 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. #2
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •