Discussions

General J2EE: reading properties file

  1. reading properties file (2 messages)

    hi all,
    I want to read a properties file which is placed inside war file from a session bean.
    How can I set meta file class path inside ejb jar for this purpose?
    or is there any other way to do this thing in websphere 4.0?
    thanks
    babu.

    Threaded Messages (2)

  2. reading properties file[ Go to top ]

    The EJB-JAR has no way to access the property file in the WAR. The "correct" way to do this is to put the property file in a JAR in the same EAR, and add that JAR to the meta file classpath of both the WAR and the EJB-JAR.
  3. reading properties file[ Go to top ]

    If you have that WAR file deployed in WAS then you will be able navigate to that particular properties file (will be under InstalledApps). Then the rest of the story is easy. If its not deployed then I wonder why that WAR file should lie in the app server.