This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Aspect Oriented Programming and the fly likes Exception handling with AOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Aspect Oriented Programming
Bookmark "Exception handling with AOP" Watch "Exception handling with AOP" New topic
Author

Exception handling with AOP

Jose Rodolfo freitas
Greenhorn

Joined: Sep 01, 2005
Posts: 9
Well, first of all, I want to say that there is a ton of material (including on this forum) about exception handling with aop, but what I want to ask, is something that I didn't find yet,

Well, I'll start commenting the problem.

I have a crontask that has to execute a lot of database calls, if one of them throws an exception on the middle, I want to step to the next call and keep executing the task.

the thing is that i manage to handle the exception, but always the exception stops the entire task.

someone has a sugestion?
Vivek Singh
Ranch Hand

Joined: Oct 27, 2009
Posts: 92
You may try with @AfterThrowing or @Arround....Advice
Jose Rodolfo freitas
Greenhorn

Joined: Sep 01, 2005
Posts: 9
yet, It seems that no advice can stop the exception.

Am I not correct?
AyanB Basu
Greenhorn

Joined: Dec 04, 2007
Posts: 1
Can you please share a POC project from where I can find flavour of Exception Handling through Spring.
Thanks in advance


Never explain yourself to anybody
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Exception handling with AOP
 
Similar Threads
AOP
AOP
Metaphors of AOP
AOP
aop rules engine