Discussions

EJB design: Property file from witing EAR file

  1. Property file from witing EAR file (1 messages)

    I have add the property file "password.xml" to the EAR project as a "password.jar" file Update the manifest file of the Java project to access the "password.jar" file within the EAR project by doing the following:
    InputStream is = this.getClass().getResourceAsStream("password.xml"); but it doesn't work.

    Threaded Messages (1)

  2. Context class loader[ Go to top ]

    InputStream is = this.getClass().getResourceAsStream("password.xml"); but it doesn't work.

    try Thread.currentThread().getContextClassLoader().getResourceAsStream("password.xml")