Hi ,
We are using the following BIRT API in our application to generate the
report. We need to create run time configuration files in different
location other than WEB-INF/platform/configuration.
Is there any way to set realtime path during platform startup.
Extract of source code for getting BIRT Report engine :
================================
private IReportEngine getBirtEngine(ServletContext sc) {
IReportEngine birtEngine = null;
if (birtEngine == null) {
EngineConfig config = new EngineConfig();
config.setEngineHome("");
IPlatformContext context = new PlatformServletContext(sc);
config.setPlatformContext(context);
try {
Platform.startup(config); -- This is creating the run time
configuration files
} catch (BirtException e) {
e.printStackTrace();
}
IReportEngineFactory factory = (IReportEngineFactory) Platform
createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
birtEngine = factory.createReportEngine(config);
}
return birtEngine;
}
===============================