I have a xml file in a .jar file that is contained in an .ear file in /deploy subdirectory of jboss, something like:
deploy/myEAR.ear/myJAR.jar/resources/myXML.xml.
I want to access this file from my application. I have problems writing the right path in the getResource() function. Could anyone help please?
Thank you,
clau
If your ear (and jar) is deployed without errors, you should be able to load the resource with the ContextClassLoader using the relative path "resources/myXML.xml".