Subject Re: [Firebird-Java] How to change forced writes settings via JayBird?
Author Alec Swan
Your code worked for me as well, thanks!

However, the code fails if I change the user name or password passed to
FBMaintenanceManager. I was under the impression that user name and password
were not required in embedded mode. Was I wrong to assume that?

Thanks,

Alec

On Mon, Oct 12, 2009 at 2:50 PM, Roman Rokytskyy <roman@...> wrote:

>
>
> > 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);
>
>


[Non-text portions of this message have been removed]