Re: [aspectj-users] Hook Thread Creations

2016-07-23 Thread ants
ecution but only captured the scheduling start event instead. > > Feel free to experiment and come up with a better solution. I was just > curious and playing around. > > -- > Alexander Kriegisch > https://scrum-master.de > > > > Andy Clement schrieb am 23.07.2016 01:

[aspectj-users] Hook Thread Creations

2016-07-19 Thread ants
Hi All, Is there a way to hook to thread creations and destroy from AspectJ pointcuts? ` Anto. -- View this message in context: http://aspectj.2085585.n4.nabble.com/Hook-Thread-Creations-tp4652108.html Sent from the AspectJ - users mailing list archive at Nabble.com.

Re: [aspectj-users] Is It Possible For Two PointCut To Go Infinite Loop?

2015-11-26 Thread ants
Sorry this the right code: aspect GuavaAspect{ public boolean trackState; declare precedence : GuavaAspect, *; protected pointcut traceMethods() :(execution(* junit.framework.TestCase+.*(..))&& within(com.google..*) && !cflow(within(GuavaAspect)));

Re: [aspectj-users] How to weave the method calls inside an war file?

2015-11-05 Thread ants
I have few questions on this specific task; Now I have written by monitoring logic in the aspectj. It works so smoothly and tested in tomcat and other servers as well. I was wondering, if this can be done as well: 1. The logging gets started when I turn on few params on my aspectj jar, which

[aspectj-users] How to load the aspectj files only once?

2015-10-13 Thread ants
Hi All, I'm very new to aspectJ and I started with load time weaving in aspectJ. I created a very simple aspectJ point cut, and loaded my jar when server get started up. It was working perfectly fine in the apache tomcat examples war. However when trying to deploy an application from the

Re: [aspectj-users] How to weave the method calls inside an war file?

2015-09-08 Thread ants
Thanks Frank for the reply. So your saying, when the java codes are compiled to an war file, I can do an weaving, but not when its actually loaded by the containers and running, is it so? -- View this message in context:

Re: [aspectj-users] How to weave the method calls inside an war file?

2015-09-08 Thread ants
Hi Alex, Thanks for your reply, I guess what you say does make sense to me. So your asking me to do the following: 1. Start the container with LTW weaving jar. So that all classes that are loaded by the classloaders will be weaved before it reaches JVM. And hence, I have all flows can be

[aspectj-users] How to weave the method calls inside an war file?

2015-09-07 Thread ants
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