Commit 66624169 authored by Shirley Crompton's avatar Shirley Crompton
Browse files

added code to close cdo session after use

parent ab06cf89
......@@ -130,7 +130,7 @@ public class metasolver{
}
public void go(String CAMELmodel, String CPmodel) throws MetricMapperException{
Mapper map = new Mapper();
/* 26Nov15 syc17 aigned with uppdated Mapper code
/* 26Nov15 syc17 aligned with updated Mapper code
long mapResult = map.mapMetricVariables(CPmodel); */
JsonObject jObj = map.mapMetricVariables(CPmodel);
RPListener rpl = new RPListener();
......@@ -367,6 +367,9 @@ public class metasolver{
}
}catch (Exception e){
System.out.println("error" + e);
}finally{
//2Dec15, always close session
utils.closeCDOSession();
}
return metricId;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment