Subject Re: Embedded backup (was: setAutocommit ...)
Author nagypapi
It works with EMBEDDED now, but I have the following comments:

1. "PURE_JAVA" constructor created FBBackupManager throws the
following exception if I backupDatabase():
"java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)

2. I created an FBBackupManager with an "EMBEDDED" constructor
parameter. By default I set the host to setHost("localhost"). Because
of this, the backupDatabase always threw a
"org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544344. I/O
error for file CreateFile (open) ..."

3. It finds and uses jaybird2.dll and fbembed.dll if I place them in
the program's (working) dir, but it doesn't find firebird.msg, which I
eventually placed in windows/system32.

(4. If I don't set user or pass with setUser/setPassword it throws a
NullPointerException which is perfectly correct, just not very

Great job!


event handling from java and built in java language support are the
other two features I'm interested in (my interest in the second is
partly because of the lack of the first). I haven't found anything
about them on the Wiki, is there any info about anyone implementing
event handling or how java procedural language is progressing?

--- In, "Roman Rokytskyy"
<rrokytskyy@a...> wrote:
> > I was hoping that FirebirdConnection could somehow give me an
> > FBBackupManager instance that would be able to backup to DB through
> > the same connection.
> That should be not needed - within the same JVM any connection to the
> database should be able to perform the backup, since the database
file is
> exclusively locked to that process.
> So, if you call FBBackupManager with "EMBEDDED" parameter, it should
> straight away. If, for some reason, it does not work, please post a
> reproducable test case here.
> Roman