AOP With Weblogic

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

AOP With Weblogic

Vivek
Hi,
We have a need to measure API Execution time for an Application deployed on Weblogic 10.3.6 server.

Need is to print a report as in following line in a log report:

API org.foo.bar.createObject(String, List) took 20 ms to execute.
..
..

I have done the similar implementation with AspectJ AOP on a JUnit framework, and is working as expected. All I had to do was put the Aspect Class file with advice to measure exec time in CLASSPATH and mention Java Agent at the run time to achieve this LTW.

Now, when I started exploring Server side, Weblogic provides many options like WLDF, Flight Recorder , Diagnostics and Monitoring controls throug UI  etc. 
Though they spit out very sophisticated information, I could not figureout how to print a log as I needed above. 

Appreciate any pointers on how to print API execution time for a given package/class deployed on a Weblogic Server domain.

Thanks
Vivek



--
---------------------------------------------------
From: Vivek A. Kulkarni
---------------------------------------------------

_______________________________________________
aspectj-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users
Reply | Threaded
Open this post in threaded view
|

Re: AOP With Weblogic

Andy Clement
I’m afraid I’m no expert on weblogic configuration. I’d say perhaps search the AspectJ mailing list archive for an answer ( http://dev.eclipse.org/mhonarc/lists/aspectj-users/ ) - or try stack overflow, there are quite a few people answering AspectJ questions on there.

cheers,
Andy

On Jul 19, 2016, at 3:54 AM, Vivek <[hidden email]> wrote:

Hi,
We have a need to measure API Execution time for an Application deployed on Weblogic 10.3.6 server.

Need is to print a report as in following line in a log report:

API org.foo.bar.createObject(String, List) took 20 ms to execute.
..
..

I have done the similar implementation with AspectJ AOP on a JUnit framework, and is working as expected. All I had to do was put the Aspect Class file with advice to measure exec time in CLASSPATH and mention Java Agent at the run time to achieve this LTW.

Now, when I started exploring Server side, Weblogic provides many options like WLDF, Flight Recorder , Diagnostics and Monitoring controls throug UI  etc. 
Though they spit out very sophisticated information, I could not figureout how to print a log as I needed above. 

Appreciate any pointers on how to print API execution time for a given package/class deployed on a Weblogic Server domain.

Thanks
Vivek



--
---------------------------------------------------
From: Vivek A. Kulkarni
---------------------------------------------------
_______________________________________________
aspectj-users mailing list
[hidden email]
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
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users