• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Database timeout and java application no response

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Currently I am working on an application which is kind of batch utility in nature. This batch utility is database intensive and we use Hibernate ORM framework for the same.
We need to envision all possible faults this application may encounter and need to provide appropriate exception/error handling for the same and convey such messages back to the calling application.

I would want to know typically how is a Database timeout exception trapped and handled using Hibernate. Say if the batch utility has run into some error (not business exceptions) but fatal error like insufficient memory can such a error/exception be trapped and the message can be conveyed back to the calling application. Or say handling and communicating such fatal errors in a generic fashion "System not available" types.

Let me know your thoughts.


-Manish

 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Manish,

I'm going to move this to the Other Open Source forum where Hibernate specific Q's are often discussed.
 
Martijn Verburg
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Right, now on to your question. I assume you're familiar with the concept that Hibernate throws a generic HibernateException in cases of failure?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic