What you describe in your original message is rather some kind of backdoor 
violating classloader separation than a concept which makes sense to me. You 
have better, simpler options:

a) LTW (load-time weaving) using a Java agent (aspectjweaver.jar) is a way to 
dynamically instrument classes (your own ones as well as 3rd-party one such as 
your map/reduce JAR).

b) Beside (de-)activating LTW via command line when restarting the container, 
you can just always weave the aspects via LTW or CTW (compile-time binary 
weaving) and use the if() pointcut in combination with a dynamic setting in 
order to (de-)activate advice execution at will during runtime.

Regards
-- 
Alexander Kriegisch
http://scrum-master.de


> Am 08.09.2015 um 09:46 schrieb xeon Mailinglist <[email protected]>:
> 
> I forgot to mention that the mapreduce jar is in byte code. If the answer to 
> the previous question is "no", can I weave my Aspects with the mapreduce jar? 
>  
> 
>> On Tuesday, September 8, 2015, ants <[email protected]> wrote:
>> Hi all, I'm new to AspectJ world. And I'm trying to do achieve the following
>> items:
>> 
>> 1. Imagine there is a war running in the server.
>> 2. I need to create one more war, including aspectj weaving techniques,
>> which should weave the war that is running in step 1.
>> 
>> Is it possible to do so? The reason, I want to create a separate war for
>> weaving is that, this war, should listen on some port (on the same
>> container) and do expose some rest APIs, which when called should start the
>> weaving process!
>> 
>> Thanks for your help!
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://aspectj.2085585.n4.nabble.com/How-to-weave-the-method-calls-inside-an-war-file-tp4651913.html
>> Sent from the AspectJ - users mailing list archive at Nabble.com.
>> _______________________________________________
>> aspectj-users mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe from 
>> this list, visit
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
aspectj-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to