Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8055255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:19:57+00:00 2026-06-05T08:19:57+00:00

I wanted to make it clear for me. I read about AOP concept and

  • 0

I wanted to make it clear for me.

I read about AOP concept and I understood that it’s a great way to share cross cutting services. (logging, security, transaction…)

But I would like to say/ask something about this idea and it’s implementation.

I read there are some ways like AspectJ, JBOSS AOP in order to assimilation AOP to my business logic.

but wasnt it here already long time ago?

let’s say for example I want to share a logging or security implementation amongs my components(Java beans, EJB’S, whatsoever.. )

Why couldn’t I make a Singleton bean making sure it will has only one instance and as soon as any component will need it’s logging/security service it would look-up and use it’s service.

Why would I need to understand and have all those “Big” implementations such as aspectj or jboss AOP? What do I miss here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:19:58+00:00Added an answer on June 5, 2026 at 8:19 am

    The idea of AOP is to keep common logic in one place (which your singleton solution solves as well) and being “invisible” (transparent). With AOP your logging code isn’t even part of the business logic, it is “injected” behind the scenes.

    Also it is more dynamic – you don’t need to call your singleton service every time you need logging. Just configure a pointcut once (like: “all setters in this package“) and logging will be applied for all existing and new code.

    Moreover AOP is much, much more flexible and powerful. You can ask the AOP implementation: “please start a transaction every time I call a method beginning with “save*” and taking one argument” or “if method returning Customer throws an exception subclassing from IllegalAgumentException, call that method again”.

    AOP is much more than just grouping common logic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to make an application that will take either the path of the
I wanted to make a function that populates a Grid in WPF with pictures.
Apologies for the length but I wanted to be clear. I'm trying to make
Edit: Just wanted to make the question I have more clear. I pretty much
I wanted to make some simple file recovery software, where I want to try
I wanted to make a basic custom keypad for the iPhone , I did
I wanted to make a post request in this website: http://www.prezup.info/index.php?page=films in order to
I wanted to make a button which is transparent until the user hovers over
I wanted to make a simple parser, for a pseudo code like language(kept rigid),
I'm using Zend FW and wanted to make a feed reader. I did the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.