Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] How to weave the method calls inside an war file?

First of all, wars are isolated from each other by the server (using classloaders), so one application cannot change the way another one behaves.

Anyway, the weaving needs to happen before the code actually starts running, either at compile time or when the classes are loaded (load-time weaving), as the code cannot easily be replaced once it's running; at least AspectJ doesn't do it, and it's a complex thing to do (see JRebel).

Regards,
Frank

2015-09-08 5:17 GMT+02:00 ants <anto.aravinth.cse@xxxxxxxxx>:
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
aspectj-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top