3 Replies Latest reply on Feb 25, 2004 12:52 PM by Marco Schulze

    How to read *.properties files?

    Marco Schulze Newbie

      Hello *,

      maybe I'm wrong, but I've read some time ago, that you should not use java.io.* within EJBs. Thus, how can I read a configuration from a *.properties file?

      Is the following way really forbidden (even though it works)?

      public void ejbCreate() throws CreateException
      try {
      Properties props = new Properties();
      // ...

      Thanks a lot in advance for your help!

      Best regards, Marco.