• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

integration of struts2 with aop(without spring)

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
usha kotha
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic