db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: Derby as desktop database
Date Thu, 29 Jun 2006 12:50:49 GMT
Andrus Adamchik wrote:

> (a) all apps run on the same machine (but in different VMs)
> (b) usually only one instance at a time would work with the database,  
> but other instances can occasionally access the db in the background  
> (no need to deal with massive concurrency)

The way this is usually accomplished is with embedded server. Network 
server is started in the same JVM as the primary instance.  The primary 
instance accesses with embedded connections.  Other JVM's can access 
with client.


Also the StartNetworkServerSample  demo  shows how this works using the 
derby.drda.startNetworkServer property.
You should be able to just add derby.drdal.startNetworkServer=true to 
your derby.properties and be able to start connecting from other JVM's 
right away.


View raw message