Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataBase connection interupted while application is running using JPA

 
Esaki muthu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running the application and after that now the database connection is not received .At this time i see application is idle and i see the progress bar running.

How can i achieve that the database connection is cut at this time.because the no error is displayed in log.


I want an exception regarding this to cath and inform the user that DBConnection is Failed
 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the connection doing something when it cuts out? If it is idle this is called time out and is a natural life cycle event.
 
Esaki muthu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No .It does not do anything .That is after connection is cut i just click an screen in application it is still loading ...but i want to catch this an display an message to the user that database connection is cut ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic