Subject Re: [Firebird-Java] How to change forced writes settings via JayBird?
Author Roman Rokytskyy
> Thanks for the answer and a little sarcasm, Roman :)

:)

> The last line in the following code throws "GDS Exception. 335544792. Cannot
> attach to services manager".
>
> // start embedded Firebird server
> FBManager manager = new FBManager("EMBEDDED");
> manager.start();
>
> MaintenanceManager maintenanceManager = new
> FBMaintenanceManager("EMBEDDED");
> maintenanceManager.setDatabase(getDatabaseFile().getAbsolutePath());
>
> Is there a document which explains when and how to use FBMaintenanceManager?

Looks like a bug (either in FB or in Jaybird)... The following works for me:

org.firebirdsql.management.FBMaintenanceManager mm =
new org.firebirdsql.management.FBMaintenanceManager("EMBEDDED");
mm.setDatabase("d:/database/ray_holme_demo.fdb");
mm.setUser("SYSDBA");
mm.setPassword("masterkey");
mm.setForcedWrites(false);