Re: [scxml] SCXML model thread-safe?

2011-07-06 Thread Rahul Akolkar
On Wed, Jul 6, 2011 at 12:48 AM, Dario D darac1...@gmail.com wrote: Thank you Rahul. In regards to custom actions in such usage case, from what we've seen, a new instance of the custom action class is created on each execution of the action. This makes it impossible for two threads to access

[scxml] SCXML model thread-safe?

2011-07-05 Thread Dario D
Is the SCXML model thread-safe? We're considering to parse the SCXML files on application startup and then store the resulting SCXML models in a cache where multiple threads will access them. Should we expect any inconsistencies? Note that executors will not be cached, and a new executor will be

Re: [scxml] SCXML model thread-safe?

2011-07-05 Thread Rahul Akolkar
On Tue, Jul 5, 2011 at 3:37 AM, Dario D darac1...@gmail.com wrote: Is the SCXML model thread-safe? We're considering to parse the SCXML files on application startup and then store the resulting SCXML models in a cache where multiple threads will access them. Should we expect any

Re: [scxml] SCXML model thread-safe?

2011-07-05 Thread Dario D
Thank you Rahul. In regards to custom actions in such usage case, from what we've seen, a new instance of the custom action class is created on each execution of the action. This makes it impossible for two threads to access the same custom action object simultaneously. Am I correct? 2011/7/5