• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Database timeout and java application no response

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • 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: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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 MAKE me come back there with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!