Business Data in Parallel Called Processes


My process has two sequential parallel called processes. A Q&A session followed by voting. My understanding is that in this case each execution thread gets its own process and a copy of the business data. This seems to work as long as each execution thread only adds data and does not update data which causes StaleObjectExceptions.

When the Q&A session returns the Business Data in the calling process needs to be updated with the changes before calling the Voting process. The only manageable way to do that would be to synchronize the DAOs with the database. Is there any mechanism to do this.

No answers yet.