Meaningless Drivel is fun!
The moose likes JDBC and Relational Databases and the fly likes concurrent access to derby database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "concurrent access to derby database" Watch "concurrent access to derby database" New topic

concurrent access to derby database

Joel Bijapurkar

Joined: Aug 01, 2011
Posts: 20

I am using a embedded derby database to store my application data. I am using this database for the first time. Is it possible for various files in my application to access the database concurrently?

I also came across the following command:

Should I use the above command after every file performs some operation on the database or should i use it after all the files have finished their operations on the database?
Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

You can only have 1 connection to a derby database at once. So i think the answer is no.
It is sorta covered in the JavaRanch Style Guide.
subject: concurrent access to derby database
jQuery in Action, 3rd edition