File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes H2 database locking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic

H2 database locking

moshi cochem
Ranch Hand

Joined: Nov 10, 2009
Posts: 91
I'm working with h2 db.
My problem appears when I run my web app thru apache tomcat,
the app is working with the db, and when it goes, I can't reach the db thru
the manager - I get a message that the db is in use.
What can I do ?
Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 255

Hi moshi,

I am curious to know why are you using H2 database rather than using mysql,which is most widely used open source database. In mysql you would not face the issue of database locking.

You can download mysql freely from the following url

Salil Verma
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63542

Please do not post the same question more than once.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: H2 database locking
It's not a secret anymore!