we are developing portal application using JSR-286 portlet inside liferay tomcat.We are creating our portlet extending Generic Portlet.Now I want to apply logs on doView() and doModify() methods using AspectJ. I tried with Spring AspectJ. But Spring AspectJ works only on spring managed beans.
any luck
I resolved above problem.
here are some solution to get it done.
Create an Aspect
some *.jar files are AspectJ binaries:
aspectjrt.jar - necessary in runtime for correct aspects processing;
aspectjtools.jar - contains implementation of aspectj compiler;
aspectjweaver.jar - bridge between aspectj logic and java instrumentation;
1.In command line enviroment (with Ant-build.xml)
way 2: post-compile weaving
way 3: load-time weaving
2.In Ecilpse (IDE environment)