code: @Deprecated
      public static Connection getConnection(String dbName) {
          final DataSource dataSource = getDataSource(dbName);
  
          try {
              final long start = System.currentTimeMillis();
              final Connection c = dataSource.getConnection();
              lastDatabase = databaseTimes.add(System.currentTimeMillis() - start); // metric
              final int current = activeConnections.incrementAndGet();
              if (current > maxConnections) {
                  maxConnections = current;
              }
              return c;
          } catch (SQLException e) {
              throw new DataAccessResourceFailureException(
                      "RDBMServices sql error trying to get connection to " + dbName, e);
          }
      }
docs: Returns a connection produced by a DataSource found in the JNDI context. The DataSource
  should be configured and loaded into JNDI by the J2EE container or may be the portal default
  database.
  
  @param dbName the database name which will be retrieved from the JNDI context relative to
  "jdbc/"
  @return a database Connection object or <code>null</code> if no Connection
  @deprecated Where possible code should be injected with a {@link DataSource} object via the
  Spring application context