The best way to do this is to keep the file external to the ear file. Then specify the path of the path in the -D parameter for java. In case you are using weblogic, you can specify -DKey=value where the java is started. Then in your code you could read the value of this key , load the file and parse it. Let me know if this solves your purpose
First, please refrain from cross posting. Second, regardless of how strong you are in the ways of the force, I doubt your real name is Obi Kenobi. Please change it to adhere to the Java Ranck naming policy.
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook