Results 1 to 5 of 5
- 12-23-2011, 09:21 AM #1
Member
- Join Date
- Dec 2011
- Posts
- 3
- Rep Power
- 0
Network File based Databases with Java for multi application access
Hello all.
I am trying to figure our what would be the appropriate database to use if I am limited to storing the database on a local network drive and it must allow multiple users using instances of the same desktop application to go in and update individual records without locking up the whole database per connection. From what I understand JavaDB can only have 1 active connection in that type of setup, or am I mistaken?
Thank you!
DrD
- 12-23-2011, 10:01 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
Re: Network File based Databases with Java for multi application access
In those situations you need a single database server that controls what goes on in the database.
You can't maintain integrity in the database file if you have multiple different database servers accessing it.
- 12-23-2011, 11:13 AM #3
Member
- Join Date
- Dec 2011
- Posts
- 3
- Rep Power
- 0
Re: Network File based Databases with Java for multi application access
I am coming from a VBA background. I have a tool made from excel forms that users use to update records in an Access Database. ADODB commands like:
allow to control the type of Locking that happens on the record.Java Code:rsData.Open "SomeTable", sConnect, adOpenForwardOnly, adLockOptimistic
Database servers are out of the question in my environment :( it has to be files on a network drive.
- 12-23-2011, 11:36 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: Network File based Databases with Java for multi application access
JavaDB has two drivers: an embedded one for a single user and a network one for multiple users; if you use the network driver you should start a JavaDB server first. (it's all in the (excellent) documentation).
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 12-23-2011, 12:31 PM #5
Member
- Join Date
- Dec 2011
- Posts
- 3
- Rep Power
- 0
Re: Network File based Databases with Java for multi application access
So far all proposals here call for a server approach, this is not possible in my environment, I am not allowed to run my own server in the environment I am using, and they wont let me use existing servers ether. The data needs to be store in a file on a network drive and allow to multiple users to access for reading and updates individual records.
Similar Threads
-
Java Based Application to Map Network Drive
By Wraithier in forum New To JavaReplies: 15Last Post: 05-24-2012, 11:09 AM -
How to access data at OpenOffice Base file (*.odb) from my java application
By atvienna in forum JDBCReplies: 4Last Post: 07-06-2010, 09:40 AM -
Entity - Field-Based Access Vs Property Based Access
By CatchSandeepVaid in forum Enterprise JavaBeans (EJB)Replies: 3Last Post: 11-02-2009, 07:18 PM -
How to connect to Window based file server from a Java Application
By anupbkk in forum Advanced JavaReplies: 2Last Post: 04-06-2009, 05:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks