18 #include "RelationalAccess/IConnectionService.h"
19 #include "RelationalAccess/IConnectionServiceConfiguration.h"
21 #include "CoralBase/Attribute.h"
22 #include "CoralKernel/Context.h"
35 std::cout <<
"Monitor Elements from DB xml source file is " <<
xmlFile_ << std::endl;
46 <<
" htmlDir = " <<
htmlDir_ << std::endl;
48 std::cout <<
" HTML output is disabled" << std::endl;
73 std::cout <<
"EcalBarrelMonitorDbModule: endJob, icycle = " <<
icycle_ << std::endl;
83 context.loadComponent(
"CORAL/Services/ConnectionService");
84 context.loadComponent(
"CORAL/Services/EnvironmentAuthenticationService");
85 coral::IHandle<coral::IConnectionService> connectionService =
86 context.query<coral::IConnectionService>(
"CORAL/Services/ConnectionService");
87 context.loadComponent(
"CORAL/RelationalPlugins/oracle");
90 coral::IConnectionServiceConfiguration &
config = connectionService->configuration();
91 config.setConnectionRetrialPeriod(1);
92 config.setConnectionRetrialTimeOut(10);
94 session_ = connectionService->connect(
"ECAL CondDB", coral::ReadOnly);
100 std::cerr <<
"CORAL Exception : " <<
e.what() << std::endl;
102 std::cerr <<
"Standard C++ exception : " <<
e.what() << std::endl;