Hi!
I wrote a mail to Thought Inc. asking whether the CocoBase Free works
with InstantDB 3.20 or not.
They told me, that they don't support any InstantDB version newer than
the one released with CocoBaseFreeJDBC (v 2.20!). Problems using
CocoBase with InstantDB newer than v2.20 occurs because the name of the
InstantDB JDBC driver has changed from "jdbc.idbDriver" to
"org.enhydra.instantdb.jdbc.idbDriver".
Regards
Juergen
joseph shoop wrote:
>
>
> Hey Juergen
>
> this how I was connecting to InstantDB using CocoBase:
>
> I just point my classpath to the cocobase classes, and include the
> latest Instant db jar.
>
> here is some example code I used:
>
> <snip>
>
> myBase = CocoDriver.getCocoDriver(
> section.getString("classpath"),
>
> section.getString("driver"),
>
> section.getString("connect"),
>
> section.getString("user"),
>
> section.getString("password"));
> //to see output
> myBase.setDebug(true);
> if(myBase.connect() == -1) {
> System.out.println("Failed connect!");
> }
>
> </snip>
>
>
> Then to use, for example for looking up a person by name:
>
> <snip>
>
>
> try {
>
> Person person = new Person();
> person.setLogin(username);
> Vector foundPerson = getCocoDriver().selectAll(person);
>
> return (Person)foundPerson.firstElement();
>
>
> } catch(Exception ex) {
>
>
> }
>
>
> </snip>
>
>
>
> Hope this helps,
>
> joe
>
>
>
>
>
> Juergen Roeder wrote:
>
> > Hi!Is anybody out there working with CocoBaseFreeJDBC?I'm working
> > with InstantDB 3.20 beta2 and CocoBaseFreeJDBC 3.01. If I try to
> > open a new db connection with the CocoAdmin Tool I get the following
> > error message: "Bad JDBC ClassName! CocoBase Free only works with
> > InstantDB or SimpleText!" It seems that CocoBaseFreeJDBC is shipped
> > with InstantDB v2.20 and all the properties files in the cocobase
> > demos subdirectory rely on version 2.20 of InstantDB.I substituted
> > all InstantDB v2.20 jars shipped with cocobase by InstantDB v3.20
> > beta2 jars and edited all the necessary properties files to work
> > with InstantDB v3.20 beta2. I set idb.jar properly in the CLASSPATH
> > too. Any idea what's going wrong? Thanks for help in advance!Jürgen
--
Juergen Roeder
IT-Consultant
Stettinerstrasse 8
D-61348 Bad Homburg v.d.H.
Fon +49 6172 969948
Fax +49 6172 969913
Mobil +49 173 3162452
---------------------------------------
Natl. eMail: juergen-roeder@t-online.de
Intl. eMail: juergen_roeder@hotmail.com
---------------------------------------
begin:vcard
n:Roeder;Juergen
tel;cell:+49 173 3162452
tel;fax:+49 6172 31864
tel;home:+49 6172 31864
tel;work:+49 69 9566 8623
x-mozilla-html:FALSE
adr:;;Stettinerstrasse 8;Bad Homburg v.d.H.;Hessen;61348;Germany
version:2.1
email;internet:juergen-roeder@t-online.de
title:IT-Consultant
fn:Juergen Roeder
end:vcard
|