code: public static void shutdown()
          throws StartupException
      {
          final Context compCtx;
          try {
              final InitialContext context = new InitialContext();
              compCtx = (javax.naming.Context) context.lookup("java:comp");
          } catch (final NamingException e) {
              throw new StartupException("Could not initialize JNDI", e);
          }
          try {
              Util.unbind(compCtx, "env/" + INamingBinds.RESOURCE_DATASOURCE);
              Util.unbind(compCtx, "env/" + INamingBinds.RESOURCE_DBTYPE);
              Util.unbind(compCtx, "env/" + INamingBinds.RESOURCE_CONFIGPROPERTIES);
              Util.unbind(compCtx, "env/" + INamingBinds.RESOURCE_TRANSMANAG);
          } catch (final NamingException e) {
              throw new StartupException("unbind of the database connection failed", e);
          }
      }
docs: Shutdowns the connection to the database.
  
  @throws StartupException if shutdown failed