How can I string a transaction across multiple DataAccessAdapters that are all pointing to the same database? I know this has been discussed, but the solution never seemed very clear (or just contained snippets of code rather than a full description or code sample).
Here's our situation ... we have an application that uses multiple modules:
- Main app - Generic, DBSpecific, manager, and GUI projects
- Logging module - Generic, DBSpecific, manager and GUI projects
- Workflow module - Generic, DBSpecific, manager, and GUI projects
The modules actually pull from the same database as the main app, which allows us to easily attach these modules to any of our applications by simply running the SQL.
Our problem is that in many cases, we want the modules to participate in transactions from the main application. For example, if a long running transaction occurs in the main app, we don't want interim logging to show up if the transaction is rolled back. Logically, it seems like we should just be able to copy the transaction and connection from one adapter to another, but I don't see how this is possible.
Any ideas? Thanks,
Josh