Skip to main content



      Home
Home » Modeling » Ecore Tools » [teneo]recover bad connections([teneo]recover bad connections)
[teneo]recover bad connections [message #1249939] Tue, 18 February 2014 14:47
Eclipse UserFriend
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: Sun Jul 13 18:48:41 EDT 2025

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

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

Back to the top