code: public static void refresh()
      {
          try
          {
              setContext(prop);
          }
          catch (NamingException e)
          {
              log.error("Unable to refresh the naming context");
              throw new OJBRuntimeException("Refresh of context failed, used properties: "
                      + (prop != null ? prop.toString() : "none"), e);
          }
      }
docs: Refresh the used {@link InitialContext} instance.