search for: rpc_driver

Displaying 1 result from an estimated 1 matches for "rpc_driver".

Did you mean: mic_driver
2006 Aug 08
0
Using class or global variable in rails - Are there any threading issues or race conditions?
...I am newbie to Rails.. and I am trying to invoke a third party webservice using SOAP::RPC::Driver object. Now I can''t store that in session (it throws TypeError) so the next best thing (on the suggestion by Ola from this mailing list) I am storing it in Class variable or I can store this rpc_driver object in global variable. In brief my concerns are related to race conditions that may arise if I store resusable objects in class/global variables. I know it is very difficult to simulate and identify a race condition. But this is what I think may happen if I use class variable or even global va...