H2 Database multiple connections

后端 未结 2 1367
不思量自难忘°
不思量自难忘° 2020-12-17 16:31

I have the following issue: Two instances of an application on two different systems should share a small database. The main problem is that both systems can only exchange d

2条回答
  •  青春惊慌失措
    2020-12-17 16:53

    From H2 documentation:

    It is also possible to open the database without file locking; in this case it is up to the application to protect the database files. Failing to do so will result in a corrupted database.

    I think that if your application use always the same configuration (shared file database on network folder), you need to create an application layer that manages concurrency

提交回复
热议问题