简体   繁体   English

WAS 到 SQL 服务器连接,没有 MSDTC

[英]WAS to SQL server connection without MSDTC

I have a WAS environment setup with DataSources connecting to SQL server environment.我有一个 WAS 环境设置,其中 DataSources 连接到 SQL 服务器环境。 We have MSDTC enabled in the SQL environment and it drops a few connections always.我们在 SQL 环境中启用了 MSDTC,它总是会断开一些连接。 Is there any ways I can set that connection up without using MSDTC?有什么方法可以在不使用 MSDTC 的情况下设置该连接?

MSDTC, which stands for Microsoft Distributed Transaction Coordinator, enables two-phase commit transactions (XADataSource). MSDTC 代表 Microsoft 分布式事务协调器,它支持两阶段提交事务 (XADataSource)。 If your applications don't actually require two-phase commit (which allows you to enlist multiple resources in a single transaction), then you could switch your data source configuration to one-phase only (ConnectionPoolDataSource) and will no longer require MSDTC.如果您的应用程序实际上不需要两阶段提交(这允许您在单个事务中征用多个资源),那么您可以将您的数据源配置切换为仅一阶段 (ConnectionPoolDataSource) 并且不再需要 MSDTC。

Here is a link to documentation from the Microsoft SQL Server JDBC Driver.这是 Microsoft SQL 服务器 JDBC 驱动程序的文档链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM