This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See you should be able to find quite a bit on the subject.
The issue with this is that my XML file is included within my web application, so I do not want to hardcode the location to the XML file (as this could change depending on where it is deployed).
Check out the following elements that are part of the web.xml configuration file for the application. You may store the location to the XML in the web.xml file. And, then read these values from the code.