File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes DataBase connection interupted while application is running using JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DataBase connection interupted while application is running using JPA" Watch "DataBase connection interupted while application is running using JPA" New topic
Author

DataBase connection interupted while application is running using JPA

Esaki muthu
Greenhorn

Joined: Apr 05, 2012
Posts: 7
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

Joined: Oct 21, 2008
Posts: 1107

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

Joined: Apr 05, 2012
Posts: 7
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 ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataBase connection interupted while application is running using JPA