Are you familiar with what AOP is? What do you mean by generate logs? What have you tried so far? Also this forum is for Spring and you have clearly stated in your topic that your post is not Spring related. In order to help you get better responses please read the following:
yes, am familiar with AOP. What i mean is.........i want to use AOP to generate logs when an exception occurs, while entering or exiting a method...........like generating logs using log4j. Using pointcut expressions, i want to generate logs. But i don't want to use IOC/Dependency injection.
I want to track my struts2 DAOs and helper classes which integrate strut2 with hibernate.
Well AOP and DI are two separate things. You can have one without the other. AspectJ is a popular library for AOP. If you google for 'aspectj exception logging' I think you will find that this same question has been answered many times and you will probably find what it is you are looking for.