开发者

How to get the id of which database transaction?

开发者 https://www.devze.com 2023-03-30 21:56 出处:网络
I have a java web app that create two database transaction about the same time. Bit somehow the 2nd db truncation is actually using back the first db transactio开发者_运维问答n connection.

I have a java web app that create two database transaction about the same time.

Bit somehow the 2nd db truncation is actually using back the first db transactio开发者_运维问答n connection.

How can I get the id of which database transaction is being used and investigate further?


At the JDBC level, a simple transaction only consists of getting a Connection, turning autocommit off, creating and executing some Statements, and committing. If you try to run "two transactions" on the same connection in this manner, they'll obviously step on each other. Your question is vague, but it sounds like you might be experiencing something like this. Give more detail, and someone might be able to help you out more.

0

精彩评论

暂无评论...
验证码 换一张
取 消