I have a service operation that I need access to database only to check to check if a user is valid, after this the service executes a long process and I dont want to keep the conection in the entire process,
something like this.
procedure LongProcesss(...)
functionr userOk : boolean;
var
connection
begin
connection = get connection
check if user is valid
connection = nil
end;
begin
userok
...
end;
Will the above call to longprocess take a conection from the pool and release it to the pool, so a second
call to longprocess will use the same connection from the pool while the first call still executing?
Thanks in adavance,
Omar Zelaya