This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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