This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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.
I agree. Here's the link:
subject: concurrent access to derby database
It's not a secret anymore!