Re: Newbie: connected user

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Jan 10 2005 - 15:59:17 EST

  • Next message: Mike Kienenberger: "Re: Newbie: connected user"

    > public DataContext getUserDataContext () {
    > DataContext dataContext = DataContext.createDataContext();
    > DataDomain qe = dataContext.getParentDataDomain();
    > DataNode dn = qe.getNode("datanode");
    > java.sql.Driver d = new oracle.jdbc.OracleDriver();
    > DriverDataSource ds = new
    > DriverDataSource(d,actualUrl,userName,password);
    > dn.setDataSource(ds);
    > return dataContext; }

    But that's exactly what I was warning against. DataNode that you are
    modifying is shared by ALL sessions in the application.

    Andrus



    This archive was generated by hypermail 2.0.0 : Mon Jan 10 2005 - 15:59:20 EST