Hi Aida,
It will depend also on how the function creates these consecutive numbers.
If the numbers are coming from the database, then the general technique is
to increment the number first, then to read that number (in the same
transaction).
begin tran
update number_fountain
set num = num+1
select num
from number_fountain
commit
Hope that helps
Dan
On Mon, 29 Oct 2018 at 18:25, Aída Betzabeth Dávila Sotelo <
[email protected]> wrote:
> Hi!
>
> Is there something in apache isis that I could use or configure for
> concurrency management?
>
> Currently I have a problem, I call a function that returns a consecutive
> number, but if I call them at the same time twice, I get the same number as
> a result.
>
> Can anyone tell me how to solve my problem?
>
> Thanks in Advance.
> Aida Davila
>