3 Replies Latest reply on Oct 17, 2005 12:44 PM by bill.burke

    Need Help With PropertyReader in @Service class

      I am having trouble accessing my properties file from within my ejb class.

      @Service
      public class MyClass implements MyInterface {
       private static final String MY_PROPERTIES = "abc.def.MyProperties";
      ...
       private void someMethod(){
       final ResourceBundle rb = PropertyResourceBundle.getBundle(MY_PROPERTIES);
      }
      


      Doing above gives me the error:
       Can't find bundle for base name abc.def.MyProperties, locale en_US
      


      However the file is inside my .war file in the correct path.

      I am placing this into the jboss\server\deploy directory as an .ear file.

      Do I have to do anything special in MyClass to get it to go inside the war and look at the properties file?