0 Replies Latest reply on Feb 7, 2006 5:53 PM by Wan Ng

    ClassLoader used in MBean does not detect newly created file

    Wan Ng Newbie

      I tried to lookup a properties file using classloader during startup of an MBean:

      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      URL myProp = loader.getResource("myProperties.properties");

      If it does not exist, I would create that properties file. Then later on, I use the same code to check if the properties file should be there(it should be there by now), but the classloader does not seem to detect that new file. Is it an expected behavior of JBoss?