This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Spring and the fly likes spring Transaction  exception handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring Transaction  exception handling" Watch "spring Transaction  exception handling" New topic
Author

spring Transaction exception handling

vijay jacob
Ranch Hand

Joined: Jul 02, 2013
Posts: 57
Bascically with spring txn management . We can annotate the service layer class with @Transactional.

Also i have annotated my dao layer class with @repository to make checked exception to uncehcked exception

Now when a runtimeexception is encoutered by the service layer class it will rollback.


My question how do we go about the exception handling. I will have to put some error message to UI .So i need to capture the exception .

How do i go about it.

vijay jacob
Ranch Hand

Joined: Jul 02, 2013
Posts: 57

This is the answer

http://www.uml-diagrams.org/examples/spring-hibernate-transaction-sequence-diagram-example.html.



 
Consider Paul's rocket mass heater.
 
subject: spring Transaction exception handling