in this case, putting LDA to fServerDataModule.pas will work perfectly.
if you should access to Service1_Impl from Service2_Impl, then drop LDA to another Service2_Impl.
after all data is read, just clear LDA.ServiceInstance.
it uses the same settings what you have specified in initialization of _Impl, i.e. it looks for registered class factory and then creates instance according to class factory rules:
function LocalServiceAccessHelper_Acquire(aGuid: TGuid; aName: String): IDataAbstractLocalServiceAccess;
..
GetClassFactory(aName).CreateInstance(aGuid, lLocal);
it seems that with a poolsize of 1, it is destroying and creating the service after the first call…
so initial create - consume - destroy - recreate service - consume -consume …
and if i clear the serviceinstance of the localdataadapter then the service gets destroyed also, so the classfactory behaviour is changed when using LDA…
LDA does not use an instance that is already in the pool…
it always creates it’s own
so either i accept the fact that there is 1 instance with apparently 1 connection which is dedicated for that one purpose OR i ditch LDA all together…
i mean if i see a scenario for 10 LDA then i end up with all connections (default 10) to be consumed and nothing goes…
is this by design?
i stand corrected… the release of the instance by nilling the serviceinstance isn’t immediate apparently and thats why i got the impression that it is creating a new one every time…
no that is fine… was just checking what was created/destroyed when…
know localadapter isn’t for me in my scenario
i guess localserver and localchannel will perform likewise…