Subject | Disconnect gracefully in Java console app |
---|---|
Author | Thomas Steinmaurer |
Post date | 2008-01-18T12:38:32Z |
Hello,
I think this is more a Java related question but perhaps there is
something Jaybird specific available.
I have a Jaybird application which will be started on Windows in a
DOS-shell. The application polls a table and does thing like XML parsing
of a data value, ...
Currently, the application can be stopped with CTRL+C, which terminates
the process, but then, of course, Firebird creates a new entry in the
firebird.log, because the connection has not been closed correctly.
What's the easiest way to disconnect a database connection when I stop
my Java application? Some kind of callback?
Thanks,
Thomas
I think this is more a Java related question but perhaps there is
something Jaybird specific available.
I have a Jaybird application which will be started on Windows in a
DOS-shell. The application polls a table and does thing like XML parsing
of a data value, ...
Currently, the application can be stopped with CTRL+C, which terminates
the process, but then, of course, Firebird creates a new entry in the
firebird.log, because the connection has not been closed correctly.
What's the easiest way to disconnect a database connection when I stop
my Java application? Some kind of callback?
Thanks,
Thomas