ColdBox/coldbox-platform — pull request #102 by bendalton (2012-08-13 20:21:14+00:00)
Title: Remote concurrency fix

Added simple fix to deal with multiple concurrent remote proxy requests during a single http request.

*The Problem:*
In Flex/Flash, multiple RemoteObject requests to the same destination can be batched together into a single http request which will cause problems with cross-request contamination (because it's via one http request, each event will be, by default, handled within a common request context).

*The Solution:*
Each time an remote proxy calls 'process', a new request context should be created. Due to the way these are stored, this simple approach just removes 'cb_requestContext' from the request scope which allows a new RC to be created. Just in case someone would ever need to maintain the shared RC, I have gone ahead and made an optional parameter for process which will allow a user to opt-out of creating this unique RC.