Guest_imported
New member
- Jan 1, 1970
- 0
Hi all,
I have two classes named ClsA and ClsB which are in the same VB project
(dll). The Instancing of ClsA is MultiUse and its MTSTransactionMode is
RequireNew while ClsB's instancing is Private. Since ClsB is a private
class, MTSTransactionMode cannot be set. It is set to private in order to
avoid other dlls or exes use it.
ClsA will use new to create ClsB instance. The ClsB instance will then add
a record to Database(SQL server).
I import this dll into COM+. Only ClsA can be seen in the Com+ console. I
use vb client to create instance of ClsA and ClsA creates instance of ClsB.
It seems to work fine. The transaction can be setComplete(Commit) or
setAbort(Rollback).
My question: Is it ok for me to have such com+ dll with some classes are
multiuse while some are private?
Any concerns or drawbacks i have to pay attention to?
Thanks alot!
I have two classes named ClsA and ClsB which are in the same VB project
(dll). The Instancing of ClsA is MultiUse and its MTSTransactionMode is
RequireNew while ClsB's instancing is Private. Since ClsB is a private
class, MTSTransactionMode cannot be set. It is set to private in order to
avoid other dlls or exes use it.
ClsA will use new to create ClsB instance. The ClsB instance will then add
a record to Database(SQL server).
I import this dll into COM+. Only ClsA can be seen in the Com+ console. I
use vb client to create instance of ClsA and ClsA creates instance of ClsB.
It seems to work fine. The transaction can be setComplete(Commit) or
setAbort(Rollback).
My question: Is it ok for me to have such com+ dll with some classes are
multiuse while some are private?
Any concerns or drawbacks i have to pay attention to?
Thanks alot!