db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Matrigali <mikem_...@sbcglobal.net>
Subject Re: Is it possible to force read-only mode?
Date Wed, 15 Jun 2005 13:46:56 GMT
A derby database can only be accessed by one JVM at a time.  If you can
run both your applications in the same JVM (using some sort of 
application server for instance), then both applications can access 
derby using the embedded mode.  If both your applications need to run
is separate JVM's then you should use the network server configuration,
which will place derby in a 3rd jvm and allow both applications to
access the derby database over a network connection in a standard
client program/database server configuration.  It is also possible
to configure derby to run in the same jvm as one of the applications
using embedded mode, and to access that instance of derby from a
separate jvm using network server configuration.

Øystein Grøvlen wrote:
>>>>>>"DN" == Daniel Noll <daniel@nuix.com.au> writes:
>     DN> For  a certain  reason, I  need the  ability for  two  applications to
>     DN> access the same  physical database. I have been  lead to believe that
>     DN> this is possible if the database is opened in read-only mode.
> Have you consider using the network server configuration?  Then
> several applications can connect to the same database and there will
> be no need for the database to be read-only.

View raw message