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 concurrent access to derby database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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!