Subject | Re: [Firebird-Java] Re: JayBird + Firebird on Android |
---|---|
Author | Mark Rotteveel |
Post date | 2011-11-17T08:42:17Z |
On Thu, 17 Nov 2011 08:27:48 -0000, "oleg_ma" <oleg_ma@...> wrote:
http://stackoverflow.com/questions/1728476/does-android-support-jdbc and
remembering the error you received, I suspect getting Jaybird to work on
Android would require quite some work rewriting the driver to work. I think
you will probably be better off (and more scalable) to create a webservice
near the database and having the android application access that webservice
instead of accessing the database directly.
It will probably also be more performant and more secure (the 'insecure'
mobile phone can only perform those actions that the webservice exposes),
and will probably improve the technical design of the application.
Mark
>> How to connect to the Fireberd from android application ?Looking at
> Class.forName(FBDriver.class.getName());
> Connection connection =
> DriverManager.getConnection("jdbc:firebirdsql:192.168.3.22:employee",
> "SYSDBA", "masterkey");
>
>> Where does Firebird run?
> Firebird run Linux server
> Plan to use connects via Wifi networks connection (Android 2.2)
http://stackoverflow.com/questions/1728476/does-android-support-jdbc and
remembering the error you received, I suspect getting Jaybird to work on
Android would require quite some work rewriting the driver to work. I think
you will probably be better off (and more scalable) to create a webservice
near the database and having the android application access that webservice
instead of accessing the database directly.
It will probably also be more performant and more secure (the 'insecure'
mobile phone can only perform those actions that the webservice exposes),
and will probably improve the technical design of the application.
Mark