Spring 支持 SAP JCo 事务吗?

发布于 2024-11-18 05:31:59 字数 65 浏览 4 评论 0原文

Spring 支持 JCo 事务管理吗?事务如何与 SAP 的 JCo 或 JRA 事务结合?

问候

Does Spring have support for JCo transaction management? How can Transactions be combined with SAP's JCo or JRA transactions?

Regards

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

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

发布评论

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

评论(1

私野 2024-11-25 05:31:59

Spring 的目标是减轻 Java 世界中的编程复杂性。作为一名 JAVA 程序员,您的愿望并不奇怪:)

Spring 提供了 JAVA 标准规范的包装器,如 JTA、JDO、JDBC 等。而 JCo 只是 SAP 提供的一个连接器 API,用于与 SAP 内部对象和接口进行事务处理。目前,据我所知Spring不为JCo提供任何支持。

JCo3 支持 JCoContext 进行有状态连接,这没什么帮助,但达不到您可能需要的程度。

您实际上可能需要实现 JCoServerTIDHandler 以及同一包中的另一个接口(我不太记得了),以便有效控制事务管理。最终,这将意味着实现 Java 连接器架构 (JCA)。这将是解决您问题的正确解决方案。

希望这有帮助。

Spring's aim was to ease programming complexities in the java world. As a JAVA programmer your wish is not surprising :)

Spring provides wrapper around standard specifications in JAVA like JTA, JDO, JDBC, etc. Whereas JCo is just a connector API provided by SAP to transact with SAP internal objects and interfaces. Currently, to my knowledge Spring does not provide any support for JCo.

JCo3 supports JCoContext for stateful connections, which is of little help but not to the extent what you may need.

You may actually need to implement JCoServerTIDHandler and one more interface from the same package (I don't exactly remember) for effective control over transaction management. Eventually, it will mean implementing Java Connector Architecture (JCA). This will be the right solution for your problem.

Hope, this helps.

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