Subject | Re: [Firebird-Java] JayBird + Firebird on Android |
---|---|
Author | Roman Rokytskyy |
Post date | 2011-11-12T22:23:21Z |
> I'm trying to create an application for android.Jaybird has dependencies on some classes from the packages which do not
> when I run the application I get a message
>
> Dx trouble processing "javax/sql/ConnectionEvent.class":
> Ill-advised or mistaken usage of a core class (java.* or javax.*)
> when not building a core library.
belong to the Dalvik platform. It is possible to remove them, but you
would need to fork your own version of driver for Android.
> How to connect to the Fireberd from android application ?Where does Firebird run? As far as I understand, there is no Firebird
for Android yet, that means that you try to connect to some server using
the wire protocol. In general that should work (see my tip above), but
from my POV that approach is architecturally wrong.
If you design your application to use online connection to the server,
you'd better consider using some higher level protocol (e.g. REST or
XML-over-HTTP). That would require you to create a server-side
counterpart of your application, but would also hide the whole database
access code completely and, if coded correctly, significantly improve
the performance (one roundtrip to server instead of 3-4 roundtrips in
case of JDBC).
Roman