Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » [teneo]recover bad connections([teneo]recover bad connections)
[teneo]recover bad connections [message #1249939] Tue, 18 February 2014 19:47
RJ Mising name is currently offline RJ Mising nameFriend
Messages: 42
Registered: July 2009
Member
How do you recover from bad connections?
HbHelper hbHelper = HbHelper.INSTANCE;
HbDataStore hbDataStore = hbHelper.getDataStore(connName);
SessionFactory sessFac = hbDataStore.getSessionFactory();

Now if someone accidently restarts the database server while the app is still running.

I get this error
java.sql.SQLRecoverableException: No more data to read from socket

Is there a way to check the health of the HbDataStore , if it is not valid call
HbDataStore hbds = (HbDataStore)hbHelper.createRegisterDataStore(connName) again.
Previous Topic:Tool for creating metamodel graphic
Next Topic:Resource creation ignores an attribute while saving to output file!
Goto Forum:
  


Current Time: Sat Nov 29 01:36:51 GMT 2014

Powered by FUDForum. Page generated in 0.02017 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software