This does not work either
ResourceBundle bundle = ResourceBundle.getBundle("my");
where properties file name is my.properties and it's even located in the same package.
why does this NOT work?
Based on your post, I would expect the following to work:
ResourceBundle bundle = ResourceBundle.getBundle("com.company.product.unit.my");
yes. you are correct. any ideas why the getResourceAsStream method does not work.
Maybe that was getting a more global class loader. You could try this.getClass().getClassLoader().getResourceAsStream(...);
tries that too. didnt' work. any way, it works using ResourceBundle. thanks.