~vcs-imports/castle/trunk

« back to all changes in this revision

Viewing changes to experiments/DotNetTransactionScopeIntegration/goals.txt

  • Committer: rbellamy
  • Date: 2006-09-04 17:56:43 UTC
  • Revision ID: svn-v4:73e77b4c-caa6-f847-a29a-24ab75ae54b6:trunk:2248
Renaming for proper case.
This will be followed by moving all the Sandbox projects into Experiments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Today
2
 
=====
3
 
 
4
 
Castle has a transaction service which is a simplification of JTA. The idea is to create logical transactions boundaries, usually associated with a thread (or something else) that represent an activity. 
5
 
 
6
 
Once a transaction is started, transaction-aware resources can detect it and enlist resources and/or register synchronizations. For example, NHibernate facility and ActiveRecord Facility start database transactions and enlist them into the logical transaction on the thread, so it's up to Castle.Services.Transaction to control the end of the transaction and how it's gonna end (commit/abort)
7
 
 
8
 
This model is also very extensible. It wont be too difficult to create a transaction-aware IO (file services), and a transaction-aware email component.
9
 
 
10
 
 
11
 
.Net 2 TransactionScope
12
 
=======================
13
 
 
14
 
With .Net 2 Microsoft offers a more lightweight and scoped transaction support which is also logical, but with a very limited API, i.e. not at all extensible.
15
 
 
16
 
The most logical path would be to make bridge the Castle API to use/rely on MS' implementation, but as the API is almost 100% internal/private this won't be possible. 
17
 
 
18
 
 
19
 
What need to be accomplished
20
 
============================
21
 
 
22
 
Ideally we continue to create castle transactions and thus continue to provide the extensibility we offer today. But we internally create a MS' transaction. 
23
 
 
24
 
Transaction-aware resources need to be tested to check if they integrate well with MS' API. For a more concrete example, if a logical transaction is created in the middle of an ActiveRecord operation, will the transaction be activated for the connections in use? Will it support isolated transactions?
25
 
 
26
 
This require lots of tests and right now there's no clear and proven way to achieve the proposed goal, that's why we invite and encourage people to experiment and contribute.
27
 
 
28
 
 
29
 
 
30
 
 
31
 
 
32
 
 
33
 
hammett / 4:13 AM 26/08/2006
 
 
b'\\ No newline at end of file'