资 源 简 介
ADOM+设计篇意在测试com+的事务处理能否正确执行。
将组件安装后,在组件服务中该com+组件的属性设置中将“激活”页的“启用对象池”选项选中,执行客户端程序调用上面这个方法,发现com+的事务机制不能正确执行,数据会写入数据库中。如果不选中“启用对象池”,则一切正常,数据并不会写到数据库中。
说明:Translation DataModule的设置,事务属性:requires a transaction,允许object pooling,pooled设为true,无论将AutoComplete设为True或False都会出现上述情况。
该问题最先由ytwxw (wxw) 提出,至今尚未有结论,我也发现类似问题。我俩探讨后无法解决,特在此再开一贴。请各路com+高手帮忙解答!
-ADOM design sections was aimed at testing com business can correct implementation. Components will be installed, Component services in the com component attributes will be set up "activated" page "open object pool" option selected. implementation of client programs call the above, the Panel found com mechanism for proper implementation, data will be included in the database. If not selected "targets of the opening pool", then everything normal, and no data writes database. Note : Translation DataModule settings, the panel attributes : requires a transaction, allowing object pooling. pooled as a true, Regardle