期刊文献+

用COM+实现高效连接池

Implement efficient connection pool with COM+
下载PDF
导出
摘要 为解决在大型管理信息系统中存在的数据库连接影响系统性能的问题,运用连接池技术给出了一种有效的解决方案。在描述连接池的一般原理和当前的实现技术基础上,给出应用COM+(ComponentObjectModel+)的对象池机制和运用VC++提供的ATL(ActiveTemplateLibrary),建立了一个高效的连接池。通过连接池可以避免数据库连接对象频繁的创建和销毁带来的系统开销,有效地提高了系统性能,充分体现了多层结构的优点。实际测试结果表明,当活动连接超过200时,通过连接池可以很大程度上提高数据库的响应效率,尤其对于涉及多个连接的分布式事务,提交的准确性和效率都能提高1倍以上。连接池还可以通过限制活动连接的数量,避免因为连接数量过多而造成系统崩溃现象。 To solve the problem that database connection generally influences the performance of large-scale management information system, an efficient solution by using connection pool technology was given, the general principle and implementation techniques of connection pool was given, the implementation of an efficient connection pool was given by using the object pool of COM+ and the ATL provided by(VC++ .) Connection pool can avoid the system spending brought by the frequently creating and destroying of database connection object and can improve the performance of whole system efficiently. Connection pool also presents the advantages of multiple tiers system. Practical test results show that connection pool can permanently improve the database's response efficiency when the number of active connection exceeds 200. By using connection pool, the validity and efficiency of distributed transactions that may contain some active connections can be improved more than two times. By limiting the number of active connections, system crashes owing to too many connections can be prevented.
出处 《吉林大学学报(信息科学版)》 CAS 2004年第6期613-619,共7页 Journal of Jilin University(Information Science Edition)
基金 深圳三股份集有限公司科研基金资助项目(20021012)
关键词 连接池 对象池 激活 组件对象模型 活动连接 活动模板库 connection pool object pooling activate COM+ active connection active template library(ATL)
  • 相关文献

参考文献9

  • 1JUPITERMEDIA CORPORATION. What is connection pool -a word definition from the webopedia computer dictionary [ EB/OL]. http: //www. webopedia. com/TERM/C/connection_pool. html, 2004-05.
  • 2胡志远,顾君忠.中间件的体系结构研究[J].小型微型计算机系统,2003,24(8):1466-1469. 被引量:11
  • 3刘辉,丁宇征,刘继红.基于Rose和ATL的COM组件开发[J].计算机应用研究,2003,20(7):124-126. 被引量:3
  • 4TIM EWALD.Transactional COM+Building Scalable Applications[M].北京:中国电力出版社(Beijing:China Electric Power Press),2003.
  • 5MARK MICHAELIS.COM+编程指南(COM+Programming from the Group Up)[M]北京:机械工业出版社(Beijing:China Machine Press),2002.
  • 6刘宏,吴江.分布式对象中间件技术[J].现代电子技术,2003,26(8):91-94. 被引量:6
  • 7DAVOD ISEMINGER.COM+开发人员参考库.第二卷:COM+编程参考(COM+Developer's Reference Library,Volume 2:COM+Reference)[M].北京:机械工业出版社(Beijing:China Machine Press),2002.
  • 8BRENTRECTOR,CHRIS SELLS.深入解析ATL(ATLInternals)[M].北京:中国电力出版社(Beijing:China Electric Power Press),2001.
  • 9ASH ROFAIL, YASSER SCHOHOUD. COM 与 COM +从入门到精通 (Mastering COM and COM + ) [M]. 北京: 电子工业出版社 ( Beijing: Publishing House of Electronics Industry), 2002.

二级参考文献15

  • 1Martin Gudgin 宋亚男.IDL精髓[M].北京:中国电力出版社,2002..
  • 2Rational Rose. Using Rose, Using Rose Visual C + + [M/CD].Rational Software Corporation, 1999.
  • 3McAffer J. Meta-level architecture support for distributed objects[C]. Proceedings of Reflection 96, G. Kiczales(ed), 1996,39~62.
  • 4Matsuoka S, Watanabe T and Yonezawa A. Hybrid group reflective architecture for object-oriented concurrent reflective programming[C]. Proceedings of the European Conference on Object-Oriented Programming(ECOOP'91). Geneva, Switzerland,LNCS, Springer-Verlag. 1991,512,231~250.
  • 5Blair G S, Coulson G, Robin P and Papathomas M. An architecture for next generation middleware[C]. Proc. Middleware'98,The Lake District, England, November 1998, 17.
  • 6Blair G S and Stefani J B. Open distributed processing and multimedia[M]. Addison-Wesley. 1997.
  • 7Maes P. Concepts and experiments in computational reflection[C]. Proceedings of OOPSLA'87, ACM SIGPLAN Notices,ACM Press. 1987, 22:147~155.
  • 8Okamura H, Ishikawa Y and Tokoro M. AL-1/d: A distributed programming system with multi-model reflection framework[C].Proceedings of the Workshop on New Models for Software Architecture, November 1992.
  • 9Watanabe T and Yonezawa A. Reflection in an object-oriented concurrent language[C]. Proceedings of OOPSLA'88, ACM SIGPLAN Notices, ACM Press. 1988, 23, 306~315.
  • 10Grady Booch et a1 邵维忠 等.UML用户指南[M].北京:机械工业出版社,2001..

共引文献17

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部