mihalcea_vlad wrote:
1. You can access the configuration properties like this:
Code:
ConfigurationService configurationService= metadataSource.getServiceRegistry().getService( ConfigurationService.class );
configurationService.getSetting(
AvailableSettings.DEFAULT_SCHEMA,
StandardConverters.STRING,
null
);
Thanks, I tried that too but ConfigurationService is null (I am using JPA by the way).
It seems that metadataSources contains a BootstrapServiceRegistry which only gives access to ClassLoaderService, StrategySelector and IntegratorService.
ConfigurationService seems to come from a StandardServiceRegistry.