Properties file classpath ear


















Ken Robinson. I've never seen a situation where individual files that the modules will use are placed in the ear outside of a module. I agree with Ken. This will work fine. Alexandru Popescu. Using Ken Robinson's formula :- I've never seen such a long discussion about a simple properties file. Otherwise if you use websphere, you can use url resources and then use jndi to pick up the url resource which links to a location on the local drive. Don't get me started about those stupid light bulbs.

Boost this thread! Packaging an EAR. This way the properties file is added to the weblogic classpath automatically and we can read from Java using resourceAsStream. Two Properties file from a User defined location :The advantage with this approach is that the property file can reside outside the JAR or EAR file and can be modified conveniently.

FileNotFoundException; import java. IOException; import java. InputStream; import java. You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. Collectives on Stack Overflow. Learn more.

How to load property file from classpath? Asked 9 years, 4 months ago. Active 4 years, 4 months ago. Viewed k times. Improve this question. Jainendra Kashif Raza Kashif Raza 1 1 gold badge 4 4 silver badges 3 3 bronze badges. Did you just answer your own question? Duplicate of stackoverflow. Add a comment. Active Oldest Votes.



0コメント

  • 1000 / 1000