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;
76 coralConfig.disablePoolAutomaticCleanUp();
77 coralConfig.disableConnectionSharing();
97 authSys = ::atoi(authSysEnv);
106 const char* authEnv = std::getenv(
"HOME");
111 servName =
"COND/Services/RelationalAuthenticationService";
116 servName =
"COND/Services/XMLAuthenticationService";
128 coral::ConnectionService connServ;
135 coral::ConnectionService connServ;
137 std::pair<std::string, std::string> fullConnectionPars =
139 if (!fullConnectionPars.second.empty()) {
141 connServ.webCacheControl().setTableTimeToLive(fullConnectionPars.second,
TAG::tname, 1);
142 connServ.webCacheControl().setTableTimeToLive(fullConnectionPars.second,
IOV::tname, 1);
143 connServ.webCacheControl().setTableTimeToLive(fullConnectionPars.second,
PAYLOAD::tname, 3);
146 return std::shared_ptr<coral::ISessionProxy>(
147 connServ.connect(fullConnectionPars.first,
149 writeCapable ? coral::Update : coral::ReadOnly));
155 std::shared_ptr<coral::ISessionProxy> coralSession =
162 coral::IHandle<coral::IAuthenticationService> authSvc =