Subject | Re: Java App with embedded server deployment (Linux) |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-05-02T17:20:21Z |
> Now I am trying to port it onto Linux.It should not :)
> Now, I installed FB server, I can connect to the database via port
> 3050 on localhost and also by "firebirdsql:embedded:..." connection
> string using libjaybird.so and it works.
> So, there is just last step and I am not sure of it. I have to makeIf you read release notes of RC2 carefully, you will see that you
> deployment package so user can install my app on Linux without
> installing Firebird. On Win32 it is very simple. I just need gdb
> file and a few dll and config files - I put them on the same dir as
> an app exe and it works. It would be optimal if I could do something
> like this on Linux. But after I tried to check things by removing
> /opt/firebird dir from my installation, embedded connection stopped
> working ("cannot connect to firebird client" or sth like this).
>
> So I have general question. What I need to deploy as an app with FB
> embedded version on Linux? I could not find anything in accessible
> docs...
should not use it on Linux: "Embedded version of the server cannot be
used on POSIX systems in multi-threaded applications.". Problem is
that libfbembed.so is based on ClassicServer version of the server
(Windows version is based on SuperServer version) and is compiled
without thread support. This means that it is not clear how it will
behave when loaded by JVM, it might work, might crash, might corrupt
the database. Currently it is still possible to load libfbembed.so
from JayBird, but most likely we will remove this feature from the
release.
You can trythis on your own risk. Also try to contact Nickolay
Samofatov, he developed embedded version of Firebird for Linux. And
wait for Vulcan release, which will solve this issue.
Roman