This content has been marked as final.
Show 3 replies
-
1. Re: optionoverrides and DataVersion
nnnnn Mar 6, 2008 5:16 PM (in response to nnnnn)Hmmm. Maybe I am wrong. Let me rephrase it:
Does getInvocationContext() return a different object per thread? Is that what makes it so that two different threads doing this at the same time don't step on each others' toes? -
2. Re: optionoverrides and DataVersion
nnnnn Mar 6, 2008 5:27 PM (in response to nnnnn)(slaps self on head). I looked at the code, and see that InvocationContext is ThreadLocal. So anybody, can I just have confirmation that using OptionOverrides to set data version for optimistic locking is thread-safe? :-P
-
3. Re: optionoverrides and DataVersion
brian.stansberry Mar 6, 2008 7:11 PM (in response to nnnnn)Yes, it's thread safe.