On 19-4-2019 10:31, Alex Peshkoff via Firebird-devel wrote:
On 4/19/19 10:45 AM, Mark Rotteveel wrote:
Is it possible to recover from calling fb_shutdown?

I'm trying to make use of embedded in Jaybird a little more crashproof by calling fb_shutdown on Java application stop.

This works fine if this application stop coincides with the process exit. But with Java web applications this doesn't work correctly if the application 'exit' was a redeploy (which stops and starts it in the same process), because this can cause the library to be reused. Unfortunately, subsequent usage will yield error: connection shutdown [SQLState:08003, ISC error code:335544856].

I may be able to workaround that by changing how Jaybird tracks and retains the client library, but it would be simpler if there is something that would allow to recover from fb_shutdown.

Does such a thing exist?


No.

Thanks, that means I'll need to investigate how I can unload and reload the library.

Mark
--
Mark Rotteveel


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to