You do not need to do anything, since the default behavior of the service is to make one call at a time. This means that if A calls method X and B also wants to call method X, then request B will not be used until the request is completed.
But if you think that even after the method is executed, no one should access the methods, then you should handle it yourself using Session !!
source share