Skip to main content

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
Rachna Bakhru is currently offline Rachna BakhruFriend
Messages: 45
Registered: July 2009
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: Mon Aug 08 17:42:38 GMT 2022

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

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

Back to the top