distributed-transactions

How to process distributed transaction within postgresql?

我只是一个虾纸丫 提交于 2021-02-07 03:56:44
问题 Anyone can kindly tell me how to process distributed transaction within postgresql, which is also called "XA"? Is there any resources about it? Great thanks for any answer. 回答1: It looks like you are a bit confused. Generally database systems support two notions of distributed transaction types: Native distributed transactions and XA transactions. Native distributed transactions are generally between different servers of the same RDBMS. Postgres also supports this with the dblink_exec command

.NET TransactionScope and MSDTC

时光总嘲笑我的痴心妄想 提交于 2021-01-27 06:22:46
问题 In my code there are transactions to handle: using (var scope = new TransactionScope()) { repo1.SaveSomething(); repo2.SaveAnythingElse(); scope.Complete(); } Inside repo1 and repo2 functions create their own db context with using, and dispose them, the transactions worked like a charm. Now I add another code like this, and it begins to drop an exception: The underlying provider failed on Open. (EntityFramework) Network access for Distributed Transaction Manager (MSDTC) has been disabled.

Jboss use JTS instead of JTA

巧了我就是萌 提交于 2020-03-05 01:34:27
问题 I have jacorb subsystem enabled in my jboss. But JTS is not enabled, I use only JTA. When an EJB remote call received by the jboss, instead of using JTA(com.arjuna.ats.internal.jta.transaction.arjunacore.jca.TransactionImporterImple) it gets JTS(com.arjuna.ats.internal.jta.transaction.jts.jca.TransactionImporterImple) and proceed with JTS. Since JTS is not enabled it failed with ORB is not initialized error. Can you please help me to identify why JTS is used instead of JTA. JBAS014134: EJB

Jboss use JTS instead of JTA

好久不见. 提交于 2020-03-05 01:34:07
问题 I have jacorb subsystem enabled in my jboss. But JTS is not enabled, I use only JTA. When an EJB remote call received by the jboss, instead of using JTA(com.arjuna.ats.internal.jta.transaction.arjunacore.jca.TransactionImporterImple) it gets JTS(com.arjuna.ats.internal.jta.transaction.jts.jca.TransactionImporterImple) and proceed with JTS. Since JTS is not enabled it failed with ORB is not initialized error. Can you please help me to identify why JTS is used instead of JTA. JBAS014134: EJB

Why is TransactionScope using a distributed transaction when I am only using LinqToSql and Ado.Net

廉价感情. 提交于 2020-01-30 06:02:08
问题 We are having problems on one machine, with the error message: "MSDTC on server XXX is unavailable." The code is using a TransactionScope to wrap some LingToSql database code; there is also some raw Ado.net inside of the transaction. As only a single sql database (2005) is being accessed, why is a distributed transaction being used at all? (I don’t wish to know how to enable MSDTC, as the code needs to work on the server with their current setup) 回答1: This almost always happens when your

Why is TransactionScope using a distributed transaction when I am only using LinqToSql and Ado.Net

限于喜欢 提交于 2020-01-30 06:01:39
问题 We are having problems on one machine, with the error message: "MSDTC on server XXX is unavailable." The code is using a TransactionScope to wrap some LingToSql database code; there is also some raw Ado.net inside of the transaction. As only a single sql database (2005) is being accessed, why is a distributed transaction being used at all? (I don’t wish to know how to enable MSDTC, as the code needs to work on the server with their current setup) 回答1: This almost always happens when your

Handling Transaction Between Paypal and Local Datasase

前提是你 提交于 2020-01-24 13:34:28
问题 What is the best practice to handle transaction between application and paypal. Consider: I'm Alice and I want send money to Bob In my DB I see that Bob has $200 and I want to send him $150. Once transaction is sent I want to update the Bob's account such that it would contain $50. Now according to PayPal API I can send Pay and receive success. However what happens if I for example send Pay it succeeds but I fail to receive a response due to network problem. So I assume that error happened

Handling Transaction Between Paypal and Local Datasase

旧街凉风 提交于 2020-01-24 13:34:13
问题 What is the best practice to handle transaction between application and paypal. Consider: I'm Alice and I want send money to Bob In my DB I see that Bob has $200 and I want to send him $150. Once transaction is sent I want to update the Bob's account such that it would contain $50. Now according to PayPal API I can send Pay and receive success. However what happens if I for example send Pay it succeeds but I fail to receive a response due to network problem. So I assume that error happened

nhibernate and transactionscope transaction aborted spontaniously

落爺英雄遲暮 提交于 2020-01-23 20:28:25
问题 I am working with Nhibernate and TransactionScope in a large application. The application is supposed to modify 3 databases and support a distribuited transaction across them. This is the code that I call each time I want to query or execute some sql on the database within the distribuited transaction: IDbConnection connection = new SqlConnection(connectionString); connection.Open(); ISession session = SessionFactory.OpenSession(connection); And this is the code called whenever after the