5 Replies Latest reply on Aug 25, 2006 6:23 PM by c_eric_ray

    How do you load a properties file

      my.properties file located in package com.company.product.unit

      so full package path is com.company.product.unit.my.properties

      code...

      ClassLoader.getResourceAsStream("my.properties");
      ClassLoader.getResourceAsStream("com/company/product/unit/my.properties");
      

      I can't get the file to load in JBoss. I fell like an idiot, however, this code which works fine in a java app does not work in JBoss (neither line of code works). Both return null. I'm sure someone know how to do this. Please advise.

      Thanks