End of TNS Channel in Oracle-Jena adaptor
669888Dec 17 2008 — edited Dec 17 2008Hi,
I'm using the Oracle-Jena adaptor 2.0 to create a sparql endpoint using Joseki. I am performing validation check and if the connection is dead I try to recreate it by calling:
Oracle oracle = new Oracle(uri, name, passwd);
GraphOracleSem g = new GraphOracleSem(oracle, modelName);
defaultModel = new ModelOracleSem(graph);
However when I try to query the model I get an exception stating "end of TNS Channel". The setup works fine initially. What is the correct way to re-establish a connection to Oracle using the Oracle-Jena adaptor?
Thanks