Re: How to install my own DbAdapterDetector on 4.0.B2

2018-02-13 Thread Nikita Timofeev
Hi, ServerModule.contributeAdapterDetectors(binder) actually uses binder.bindList(DbAdapterDetector.class, SERVER_ADAPTER_DETECTORS_LIST), so your binder.bindList(DbAdapterDetector.class) part was incorrect. I think you better use insertBefore() instead of just add(), to be sure that order remain

Re: How to install my own DbAdapterDetector on 4.0.B2

2018-02-12 Thread Juan Manuel Diaz Lara
I solved it,for 4.0.B2: ServerModule.contributeAdapterDetectors(binder).add(PcExpressPosPgDetector.class); I suppose this method add the new detector to the first place on the list, so It is found as i want. Does  anybody knows why my first approach didn't worked ? Atte. Juan Manuel Díaz Lara

How to install my own DbAdapterDetector on 4.0.B2

2018-02-12 Thread Juan Manuel Diaz Lara
My code was working on 4.0.M5, but I ca not figure out how to make it work on B2, I think the problem is that I am not installing my DbAdapterDetector properly. package com.ace.dba; import static org.apache.cayenne.configuration.Constants.SERVER_ADAPTER_DETECTORS_LIST; import org.apache.cayen