| Author |
integration of struts2 with aop(without spring)
|
usha kotha
Ranch Hand
Joined: Apr 18, 2012
Posts: 32
|
|
Could anyone please help me in integrating struts2 with aop(without using spring) to generate logs.
I would be so pleased if you could post code snippets for integration step by step or a few links which would explain clearly.
|
 |
Bill Gorder
Bartender
Joined: Mar 07, 2010
Posts: 1282
|
|
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:
Show Some Effort
Tell the Details
Carefully Choose One Forum
|
[How To Ask Questions][Read before you PM me]
|
 |
usha kotha
Ranch Hand
Joined: Apr 18, 2012
Posts: 32
|
|
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.
|
 |
Bill Gorder
Bartender
Joined: Mar 07, 2010
Posts: 1282
|
|
|
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.
|
 |
 |
|
|
subject: integration of struts2 with aop(without spring)
|
|
|