CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  企业开发 >  WebLogic

???请指点·Weblogic5.1的配置文件中,TXDataSource和DataSource有什么区别?

楼主nikita_win(百年)2002-04-04 10:53:11 在 企业开发 / WebLogic 提问

请看19行,TXDataSource和DataSource有什么区别?  
  把它换成DataSource在EJB中也可以lookup到;  
  不知道换成DataSource使用会有什么不同?  
  请指点·  
   
  01#   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #  
  02#   WEBLOGIC   DEMO   CONNECTION   POOL   PROPERTIES  
  03#   -------------------------------------------------  
  04#   CLUSTER   USERS:   Note   that   ALL   JDBC   connection   pools   should   be   set   up  
  05#   in   the   *per-cluster*   properties   file   ONLY.  
  06#  
  07#   This   connection   pool   uses   the   sample   Cloudscape   database   shipped  
  08#   with   WebLogic.   Used   by   the   EJBean,   JHTML,   JSP   and   JMS   examples.  
  09#   Uncomment   to   use:  
  10weblogic.jdbc.connectionPool.demoPool=\  
  11               url=jdbc:cloudscape:demo,\  
  12               driver=COM.cloudscape.core.JDBCDriver,\  
  13               initialCapacity=1,\  
  14               maxCapacity=2,\  
  15               capacityIncrement=1,\  
  16               props=user=none;password=none;server=none  
  17#  
  18#   Add   a   TXDataSource   for   the   connection   pool:  
  19weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.demoPool=demoPool  
  20#  
  21#   Add   an   ACL   for   the   connection   pool:  
  22weblogic.allow.reserve.weblogic.jdbc.connectionPool.demoPool=everyone  
  问题点数:100、回复次数:3Top

1 楼wangtaoyy(flow)回复于 2002-04-04 11:31:24 得分 100

TXDataSource:可在一个transaction中操作多个数据库和同一数据库的多个Connection,不能直接使用db的transaction功能  
   
  DataSource:transaction是基于Connection的Top

2 楼nikita_win(百年)回复于 2002-04-16 14:53:18 得分 0

你的意思是说:  
   
  TXDataSource可以支持多个数据库或数据库连接间的事务处理;  
  DataSource只能支持同一个Connection中的事务处理吗?  
  除了这些还有别的区别吗?  
  谢谢!Top

3 楼nikita_win(百年)回复于 2002-04-16 15:09:17 得分 0

下面是java.sun.com中对于TXDataSource和DataSource的解说:  
   
  To   define   a   JTS-enabled   DataSource   named   "myJtsDataSource"   for   the   connection   pool   "myConnectionPool",   add   the   following   line   to   the   weblogic.properties   file:  
  weblogic.jdbc.TXDataSource.myJtsDataSource=myConnectionPool    
   
  To   define   a   DataSource   named   "myNonJtsDataSource"   for   the   connection   pool   "myConnectionPool"   that   is   not   JTS-enabled,   add   the   following   line   to   the   weblogic.properties   file:  
  weblogic.jdbc.DataSource.myNonJtsDataSource=myConnectionPool    
   
  You   can   define   multiple   DataSources   that   use   a   single   connection   pool.   This   allows   you   to   define   both   JTS-enabled   and   non-JTS-enabled   DataSource   objects   that   share   the   same   database.  
   
  JTS是:(Java事务服务)JavaTM   Transaction   Service   (JTS)   的缩写  
  具体内容大家可以到以下网址查看:  
  http://java.sun.com/products/jts/  
  Top

相关问题

  • WEBLOGIC 6.1下的配置文件要放在哪个目录下?
  • 配置文件
  • jboss配置文件
  • ··· 资料:WINAMP 配置文件 ···
  • 关于tomcat配置文件
  • 怎样写配置文件?
  • 配件配置文件
  • 配置文件问题??
  • 读写配置文件
  • 配置文件错误

关键词

  • weblogic
  • jdbc
  • txdatasource
  • demopool
  • myconnectionpool
  • jts
  • datasource
  • cloudscape
  • connection pool
  • enabled

得分解答快速导航

  • 帖主:nikita_win
  • wangtaoyy

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo