English 中文(简体)
如何在使用日本邮管局时使用我的机车。
原标题:How to use mysql get_lock when using JPA?

I want to leverage get_lock() function of mysql as a global lock, but it looks like impossible as I also use JPA as my database layer. Because get_lock() is connection based that means you have to lock/unlock using the same connection, however, there is no native way to retrieve a JDBC connection from JPA. Does that mean get_lock()/release_lock() is totally impossible in JPA? I don t like unwrap to underlying JPA implementation as it s not portable.

最佳回答

我最后通过利用亚行的一个数据来源以及日本邮管局,解决这一问题。

问题回答

暂无回答




相关问题
iPhone app running while screen locked

Here is something I am trying desperately to get to work: I have an app that polls the GPS module in specified intervals and then sends out coords out to a server using Unix calls such as write(); It ...

Threading and un-safe variables

I have code listed here: Threading and Sockets. The answer to that question was to modify isListening with volatile. As I remarked, that modifier allowed me to access the variable from another thread....

mySQL - Apply a row level lock using mysqli

Using PHP s mysqli how do you apply a row level lock? Row level locks stop anyone editing currently present rows that match your criteria right? but do they stop a user inserting a row which matches ...

How are mutex and lock structures implemented?

I understand the concept of locks, mutex and other synchronization structures, but how are they implemented? Are they provided by the OS, or are these structures dependent on special CPU instructions ...

Determine thread which holds the lock on file

I know there is no WINAPI which would do it, but if a thread is hung and holds an open handle of file. how do we determine the thread id and Terminate it within our processes. I m not talking about ...

xml Column update and Locking in Sql Server

I have a few windwos services. They get xml column from Sql server manipulate and update it. Service A- Gets XML Service B- Gets XML Service A- Updates XML (it will be lost) Service B- Updates XML I ...

热门标签