[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-dev] Queries from a newbie..
|
Sathya wrote:
> Hello guys,
>
> I am new to AOP - and my initial work with it have been so awesome.
> It looks to be really powerful.
>
> I have 2 major queries (for now :) ) - thanks so much to anyone who
> can help me :
>
> 1. I want to create an aspect in Eclipse. I got the ajdt plugins -
> but they create only .aj files. How do I deploy this file with my
> java servers ?
You don't. You deploy the class-files and they are purely Java compliant.
> 2. We are developing EJBs in JBoss and want to see how the
> performance of a bean method is. For example, our CMP bean defines a
> method called findPersonByName() - can I define a pointcut when this
> method starts executing as :
You might wanna use an around advice that "shadows" your actual method,
saves a timestamp before execution of this shadow, then invokes the shadow
using proceed() and finally reports the timestamp-difference.
> Are there limitations in a J2EE server ? I did read the FAQ in the
> web-site but I was not very clear on what it is saying.
I am not an expert on J2EE but I could not think of any issues here since
AspectJ is doing purely compliant bytecode transformations. They are of
course J2EE compliant as well.
Eric
--
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University