darlingpretty
Programmer
Hi Every:
I have a confused problem about COM+ Transaction.
I have a Componennt A that new transaction required and Component B that transaction supported.
Both ComponentA and ComponentB is transactional, pooled and JIT Activation.
whether I need call Compoent B's method by creating a new Component B using new operator in Component A or not.
Coding Example:
ComponentB b = null;
[AutoComplete]
ComponentA:oIt()
{
b = new ComponentB();
b.Dosomething();
b = new ComponentB();
b.DosomthingElse();
}
ComponentB b = null;
[AutoComplete]
ComponentA:oIt()
{
if( b == null) ComponentB b = new ComponentB();
b.Dosomething();
b.DosomthingElse();
}
which is right? If the latter is right, I wonder if ComponentA's transaction ID could transfer to ComponentB correctly.
Thanks!
I have a confused problem about COM+ Transaction.
I have a Componennt A that new transaction required and Component B that transaction supported.
Both ComponentA and ComponentB is transactional, pooled and JIT Activation.
whether I need call Compoent B's method by creating a new Component B using new operator in Component A or not.
Coding Example:
ComponentB b = null;
[AutoComplete]
ComponentA:oIt()
{
b = new ComponentB();
b.Dosomething();
b = new ComponentB();
b.DosomthingElse();
}
ComponentB b = null;
[AutoComplete]
ComponentA:oIt()
{
if( b == null) ComponentB b = new ComponentB();
b.Dosomething();
b.DosomthingElse();
}
which is right? If the latter is right, I wonder if ComponentA's transaction ID could transfer to ComponentB correctly.
Thanks!