Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: RES: [aspectj-users] AspectJ with Servlets on Tomcat 5.x


Jordi,

The most common pattern for logging/tracing pattern is to advise method execution (rather that invocation or call) with the execution pointcut. Your aspect will only match code that actually calls the doGet /doPost methods; code that I suspect you don't control or weave. The "sets()" pointcut in your other aspect matched and you call was woven because the method calls e.g. setName() are in your code.

Cheers

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/

Back to the top