Re: Setting Connection information

From: Michael Sacket (msacke..ammastream.com)
Date: Mon Nov 01 2004 - 17:08:33 EST

  • Next message: Tore Halset: "Re: strange tapestry problem"

    Oops... It does work, I had the password typed in wrong. Perhaps I
    shouldn't stay up as late.

    Thanks,
    Michael

    On Nov 1, 2004, at 12:18 PM, Andrus Adamchik wrote:

    > Hi Michael,
    >
    > The code you have seems correct. So what happens when you run it?
    >
    > Andrus
    >
    >
    >> Hello,
    >>
    >> I am attempting to set the connection information for my driver
    >> programatically. Is there a way to do this? I've tried something
    >> like
    >> this, to no avail:
    >>
    >> DataContext dc = DataContext.createDataContext();
    >> DataDomain qe = dc.getParentDataDomain();
    >> DataNode dn = qe.getNode("MyDataNode");
    >>
    >> java.sql.Driver d = new com.openbase.jdbc.ObDriver();
    >> DriverDataSource ds = new DriverDataSource(d,
    >> "jdbc:openbase://localhost/mydatabase",
    >> "admin",
    >> "password");
    >>
    >> dn.setDataSource(ds);
    >>
    >>
    >> I would appreciate any help.
    >>
    >> Thanks,
    >> Michael
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Nov 01 2004 - 17:08:36 EST