Setting Connection information

From: Michael Sacket (msacke..ammastream.com)
Date: Mon Nov 01 2004 - 12:34:59 EST

  • Next message: Bryan Lewis: "Re: Fetching a NextVal to be used in an insert"

    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 - 12:35:02 EST