Click here to Skip to main content
15,914,071 members
Home / Discussions / Work Issues
   

Work Issues

 
AnswerRe: Too many skills? Pin
Jeff Varszegi27-Nov-03 14:02
professionalJeff Varszegi27-Nov-03 14:02 
GeneralScientific Programming Pin
Wjousts26-Nov-03 8:40
Wjousts26-Nov-03 8:40 
GeneralRe: Scientific Programming Pin
jhoin17-Dec-03 3:56
jhoin17-Dec-03 3:56 
GeneralRe: Scientific Programming Pin
Wjousts18-Dec-03 10:04
Wjousts18-Dec-03 10:04 
QuestionGood on-line training program? Pin
Ken Galer24-Nov-03 10:29
Ken Galer24-Nov-03 10:29 
GeneralSenior Web Developer Pin
Derek Lakin19-Nov-03 4:58
Derek Lakin19-Nov-03 4:58 
GeneralCOM+ Transaction 70-320 exam question Pin
CillyMe12-Nov-03 17:51
CillyMe12-Nov-03 17:51 
GeneralRe: COM+ Transaction 70-320 exam question Pin
turbochimp1-Mar-04 4:22
turbochimp1-Mar-04 4:22 
I don't think I would call EnableCommit as a matter of course (for example, as the first line of code in PlaceHolder). What that says is, "Regardless of what I do with the code in PlaceHolder that may impact my transaction, I choose to vote for committing it anyway." That is to say, in general, you call EnableCommit *after* the body of your transaction-aware code has executed, to tell other participants in the transaction that your code is unaware of any reason not to commit.

Second (and I am not a COM+ transaction authority), my understanding of AutoComplete versus EnableCommit is that AutoComplete is used to both ensure the creation of a transaction, and ensure that SetComplete is called if the tagged method returns normally(PlaceHolder in this case). Marking the method as AutoComplete(true) suggests that PlaceHolder is the first and last bit of logic to use the created transaction. Can't tell by your question, but I must assume there may be other methods called either before or after PlaceHolder that also intend to use the transaction.

SetComplete sets both the IsConsistent and IsDone bits on a transaction context, indicating that the transaction should proceed with the act of committing itself (bad news if other logic needs the transaction), while EnableCommit only sets the IsConsistent bit, allowing further code to use the transaction instead of trying to commit it immediately.

If PlaceHolder actually sits in the middle of other methods, all of which are intended for use in the same transaction context, setting EnableCommit at the end of PlaceHolder's execution would be the right choice with regards to transaction integrity.

The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

Questioni need good resume format? Pin
murali_utr31-Oct-03 20:13
murali_utr31-Oct-03 20:13 
GeneralMCAD Preparation Pin
6efftee13-Oct-03 9:05
6efftee13-Oct-03 9:05 
GeneralRe: MCAD Preparation Pin
Nino_118-Oct-03 19:03
Nino_118-Oct-03 19:03 
GeneralRe: MCAD Preparation Pin
Blue Energy18-Nov-03 7:43
Blue Energy18-Nov-03 7:43 
GeneralRe: MCAD Preparation Pin
Jeff Varszegi27-Nov-03 13:56
professionalJeff Varszegi27-Nov-03 13:56 
QuestionC# and jobs? Pin
devvvy11-Oct-03 9:35
devvvy11-Oct-03 9:35 
AnswerRe: C# and jobs? Pin
Brandon Haase13-Nov-03 15:51
Brandon Haase13-Nov-03 15:51 
GeneralRe: C# and jobs? Pin
CillyMe13-Nov-03 15:58
CillyMe13-Nov-03 15:58 
GeneralRe: C# and jobs? Pin
Brandon Haase13-Nov-03 16:11
Brandon Haase13-Nov-03 16:11 
AnswerRe: C# and jobs? Pin
Brian Shepherd16-Nov-03 22:03
Brian Shepherd16-Nov-03 22:03 
GeneralRe: C# and jobs? Pin
Jörgen Sigvardsson21-Dec-03 14:00
Jörgen Sigvardsson21-Dec-03 14:00 
GeneralRe: C# and jobs? Pin
Marc Clifton31-Aug-04 2:34
mvaMarc Clifton31-Aug-04 2:34 
GeneralRe: C# and jobs? Pin
Jörgen Sigvardsson31-Aug-04 2:44
Jörgen Sigvardsson31-Aug-04 2:44 
GeneralRe: C# and jobs? Pin
Marc Clifton31-Aug-04 2:50
mvaMarc Clifton31-Aug-04 2:50 
General.NET Jobs at ThoughtWorks Pin
Jo Avent8-Oct-03 6:26
Jo Avent8-Oct-03 6:26 
GeneralMCSD Certification Pin
~o_xprsg_o~6-Oct-03 0:16
~o_xprsg_o~6-Oct-03 0:16 
GeneralRe: MCSD Certification Pin
Daniel M. Edwards7-Oct-03 12:37
Daniel M. Edwards7-Oct-03 12:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.