Javax.naming.context initctX = new initialContext ();
Javax.naming.context envctx = (javax.naming.context) Initctx.lookup ("Java: Comp / ENV");
DataSource DS = (Datasource) Envctx.lookup ("JDBC /" DBNAME);
Return DS.GetConnection ();