Hi, Not sure why your custom DataDomainProvider is never called. Your binding looks good to me, and nothing there was changed in 4.0.B1 (see [1]). But you should change PCATransactionFilter binding, as List bindings were redesigned. Correct way to add filter is following:
ServerModule.contributeDomainFilters(binder).add(PCATransactionFilter.class); [1] https://github.com/apache/cayenne/blob/STABLE-4.0/cayenne-server/src/main/java/org/apache/cayenne/configuration/server/ServerModule.java#L353 On Tue, Mar 6, 2018 at 11:29 PM, Juan Manuel Diaz Lara <jmdia...@yahoo.com.invalid> wrote: > I am using 4.0.M5. > The next code used to work in a previous version, but now > PCADataDomainProvider is never called to create my custom DataDomain: > > public class ServerModuleWithPostCommitActions implements > org.apache.cayenne.di.Module { > > @Override > public void configure(Binder binder) { > > > > binder.bindList(Constants.SERVER_DOMAIN_FILTERS_LIST).add(PCATransactionFilter.class); > > > binder.bind(TransactionFactory.class).to(TransactionWithPostCommitActionsFactory.class); > > binder.bind(DataDomain.class).toProvider(PCADataDomainProvider.class); > > > binder.bind(ObjectContextFactory.class).to(PCADataContextFactory.class); > > } > > } > > > > Atte. Juan Manuel Díaz Lara -- Best regards, Nikita Timofeev