java - clientidentifier in hibernate -
I am using a connection manager's spring configuration, where I set up client identifier for each connection Required and can be used in database policies Here I have a problem when more than one request is coming in parallel, it is messing up due to the user name of the connection that I am using. I am just following the link below using the spring jar. One extra thing I am doing is a variable user name in my client identifier class and has a setter and gator method and opens it as a parameter for the stored procedure. My problem occurs when there is an old copy of the user name that has a parallel transaction that the customer identifier Singleton Bean has been injected, which I have passed. Is there a better alternative to setting up a dynamic method to pass the username to the request from this bean and should recover the correct value when retrieving the bean. Any help is appreciated. Create a Utility (Fixed Variable / Math) Class with ThreadLocal Variables. ...