Results 1 to 4 of 4

Thread: AOP Exception Handling still need business exception?

  1. #1

    Default AOP Exception Handling still needs business exception?

    Hello,

    Basic question about implement the log with AOP. I would like to know from your experience if it still necessary to create my business exceptions or is there a way to do that in a general aspect? Any link will be also very helpful.

    Thank you. Regards.
    Last edited by DistillingSpring; Oct 25th, 2007 at 08:30 AM.

  2. #2
    Join Date
    Oct 2007
    Posts
    10

    Default

    what' your meaning?
    do you want the log process don't rollback even if the business service throws a Exception(business service rollbacks)?

  3. #3

    Default

    Thanks for your reply.

    What I meant is that if I have plenty of business Exception Handling (as every normal enterprise application), do I still have to create those as classes using the old fashion Java way and after words some how wire that in my AOP configuration or is there a more generic way to do that, which I would not need to create one business Exception Handling class always when I need it?

    Regards.

  4. #4
    Join Date
    Aug 2006
    Posts
    236

    Default

    You can create a BusinessExceptionLoggingAspect whereby when an business exception occurs within a given pointcut then you can log it. This saves from you coding across the board.

    Is this what your looking for? In which case i can provide a sample example.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •