06-08-2014 05:07 AM
06-11-2014 02:48 AM
In the method getNuxeoReport of the class ReportHelper it should be included:
for (Iterator i = designHandle.getDataSources().iterator(); i.hasNext();) {
OdaDataSourceHandle dsh = (OdaDataSourceHandle) i.next();
(+)OdaDataSource ds = (OdaDataSource) dsh.getElement();
(+)Module root = ds.getRoot();
(+)String odaJndiName = (String) ds.getProperty(root, "odaJndiName");
(+)if (odaJndiName == null || odaJndiName.isEmpty())
(+){
String singleDS = Framework.getProperty(
"nuxeo.db.singleDataSource", null);
if (singleDS != null && !singleDS.isEmpty()) {
(-)OdaDataSource ds = (OdaDataSource) dsh.getElement();
This code checks if there is the "odaJndiName" property in a report and use it. Otherwise, it runs as usual.
All the best.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.