Microsoft 的 MS-SQL Server JDBC 3.0 驱动程序是否包含对 JTA 的支持?

发布于 2024-09-28 23:08:50 字数 283 浏览 1 评论 0原文


我在某处读到,为了使用 JTA 和 Tomcat(我也在使用 Hibernate),您需要使用 JTA 版本的 JDBC 驱动程序。这是真的吗?
如果是这样,这个驱动程序包括JTA支持吗?

谢谢,
一泰

I read somewhere that in order to use JTA and Tomcat (I'm also using Hibernate) you need to use a JTA version of the JDBC driver. Is this true?
If so, does this driver include JTA support?

Thanks,
Ittai

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

小伙你站住 2024-10-05 23:08:50

是的,确实如此。请参阅 com.microsoft.sqlserver.jdbc.SQLServerXADataSource。
您还可以在此处了解有关使用 MS SQL 进行 XA 事务的更多信息

Yes, it does. See com.microsoft.sqlserver.jdbc.SQLServerXADataSource.
You can also read more on XA transactions with MS SQL here

递刀给你 2024-10-05 23:08:50

但是拥有 XA 驱动程序是必要的,但还不够。您还必须有一个 JTA 事务管理器,但这不是 JDBC 的一部分。

But having the XA driver is necessary but not sufficient. You have to have a JTA transaction manager as well, and that's not part of JDBC.

留一抹残留的笑 2024-10-05 23:08:50

我一直使用 MS SQL Server 的 jTDS 驱动程序。
MS SQL Server 是在从 Sybase 获得的基础上构建的,因此它们都使用表格数据流作为协议。

正如 duffymo 所说,您需要一个 JTA 事务管理器,例如:

I've always used the jTDS driver for MS SQL Server.
MS SQL Server, was built from a base acquired from Sybase, therefore they both use Tabular Data Stream as a protocol.

And as duffymo has said you'll need a JTA transaction manager such as :

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文