db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernt M. Johnsen" <Bernt.John...@Sun.COM>
Subject Re: Embedded and Network Simultaneous Connections
Date Thu, 06 Nov 2008 15:30:56 GMT
It is no problem having an application with an embedded Derby and
starting the Derby network server so that network clients may connect
to the same database:

You may e.g  start your embedded app like this:

java -Dderby.drda.startNetworkServer=true
 -Dderby.drda.host=ahost
  -Dderby.drda.port=12345
  -classpath derbynet.jar ...

Or do the following in your app:

NetworkServerControl server = new NetworkServerControl
           (InetAddress.getByName(“ahost”), 12345);
server.start(null);



-- 
Bernt Marius Johnsen, Staff Engineer
Database Technology Group, Sun Microsystems, Trondheim, Norway

Mime
View raw message