// Assign the user submitted ID and name to the client object as properties client.uid = request.uid; client.name = request.name; // Create a pool of connections var myPool = new DbPool(); // Create a connection for the pool myPool.connect("ORACLE", "mySID", "myApp", "appsPWD", "myTNS"); // Open a connection from the pool. Give error if connection could // not be made. var myConn = myPool.connection('Employees', 15); if(myConn.connected()){ // Do any database stuff here // If the connection fails, write an error message }else{ write('Error (' + myConn.majorErrorCode() + '): ' + myConn.majorErrorMessage); }