[英]How to archive a distributed (database) transaction between a java and c++ application?
I need to archive a distributed database transaction between a java and a c++ application in a way that both applications share the same transaction (can see uncommited data of this transaction). 我需要将Java和C ++应用程序之间的分布式数据库事务归档,使两个应用程序共享同一事务 (可以看到此事务的未提交数据)。
Eg I'd like to do this: 例如,我想这样做:
Which approaches exists to do this? 有哪些方法可以做到这一点? What pitfalls may arise?
可能会出现什么陷阱?
Are there alternate solutions for my problem? 我的问题有替代解决方案吗?
The solution may be oracle-specific (Oracle 10 would be fine), but a more general approach (at least on the java side) would be prefered, if equal. 该解决方案可能是特定于oracle的(Oracle 10会很好),但是如果相等的话,则首选更通用的方法(至少在Java方面)。
我认为,由于事务绑定到数据库连接(据我所知),因此两个应用程序都需要通过一些通用服务来传达请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.