Link Details

Link 97797 thumbnail
User 185351 avatar

By jsugrue
via java.dzone.com
Published: Jul 24 2008 / 16:25

Yesterday I was having a meeting about a new project startup. At some level the meeting was stuck on an argument of logging. Well I suggested the same thing as any experienced developer would suggest... "Why don't we use the Aspects?".Our project is running on Websphere Application Server and using JDK 1.4 which means we won't be using EJB3 or annotations. So I just tried AspectJ - although I found the examples were confusing, what I achieved was very simple and easy. Here is a basic tutorial on how to enable and using Aspects
  • 17
  • 6
  • 1565
  • 455

Comments

Add your comment
User 134694 avatar

alruiz15 replied ago:

1 votes Vote down Vote up Reply

I like AOP and AspectJ, but introducing them into a project needs to be considered carefully (IMHO.) Debugging "AOP magic" can be a nightmare for team members other than the aspect author. Also, without AJDT, it is difficult to realize which aspects are being applied into the code base.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.