13 #include "RelationalAccess/ConnectionService.h"
14 #include "RelationalAccess/IAuthenticationService.h"
15 #include "RelationalAccess/IWebCacheControl.h"
16 #include "RelationalAccess/ISessionProxy.h"
17 #include "RelationalAccess/IConnectionServiceConfiguration.h"
18 #include "CoralKernel/Context.h"
19 #include "CoralKernel/IProperty.h"
20 #include "CoralKernel/IPropertyManager.h"
24 namespace persistency {
58 level = coral::Warning;
77 coralConfig.disablePoolAutomaticCleanUp();
78 coralConfig.disableConnectionSharing();
99 authSys = ::atoi(authSysEnv);
108 const char* authEnv = std::getenv(
"HOME");
113 servName =
"COND/Services/RelationalAuthenticationService";
118 servName =
"COND/Services/XMLAuthenticationService";
130 coral::ConnectionService connServ;
137 coral::ConnectionService connServ;
139 std::pair<std::string, std::string> fullConnectionPars =
141 if (!fullConnectionPars.second.empty()) {
143 connServ.webCacheControl().setTableTimeToLive(fullConnectionPars.second,
TAG::tname, 1);
144 connServ.webCacheControl().setTableTimeToLive(fullConnectionPars.second,
IOV::tname, 1);
145 connServ.webCacheControl().setTableTimeToLive(fullConnectionPars.second,
PAYLOAD::tname, 3);
148 return std::shared_ptr<coral::ISessionProxy>(
149 connServ.connect(fullConnectionPars.first,
151 writeCapable ? coral::Update : coral::ReadOnly));
157 std::shared_ptr<coral::ISessionProxy> coralSession =
164 coral::IHandle<coral::IAuthenticationService> authSvc =