• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

spring Transaction exception handling

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

This is the answer

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



reply
    Bookmark Topic Watch Topic
  • New Topic