Added fallback to discovered instance
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120309 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
459d95c8d5
commit
5c0cfe71e9
|
@ -103,6 +103,7 @@ public abstract class AccountingPersistenceBackendFactory {
|
|||
*/
|
||||
logger.debug("{} will be used.", foundPersistenceClassName);
|
||||
foundPersistence.setAggregationScheduler(AggregationScheduler.newInstance());
|
||||
foundPersistence.setFallback(createFallback(scope));
|
||||
return foundPersistence;
|
||||
} catch (Exception e) {
|
||||
logger.error(String.format("%s not initialized correctly. It will not be used. Trying the next one if any.", foundPersistence.getClass().getSimpleName()), e);
|
||||
|
|
Loading…
Reference in New Issue