db4o

Db4o.openServer Method 

opens an ObjectServer on the specified database file and port.

If the server does not need to listen on a port because it will only be used in embedded mode with com.db4o.ObjectServer.openClient , specify '0' as the port number.

public static ObjectServer openServer(
   string databaseFileName,
   int port
);

Parameters

databaseFileName
the full path to the database file
port
the port to be used, or 0, if the server should not open a port, because it will only be used with com.db4o.ObjectServer.openClient

Return Value

an ObjectServer listening on the specified port.

See Also

Db4o Class | com.db4o Namespace | readOnly | encrypt | password