My Application (ear) has 2 jar and 2 war files. I want to find out if a properties file (xyz.xml) appear twice or more in the class path. I tried withURL url = Thread.currentThread().getContextClassLoader().getResource("xyz.xml");
. But this process return only the 1st appearance of the properties file. It's stop looking further once it gets the file in any jar/war. But , I do need all the occurrences of this properties file in my application. I am new in Java EE world, spend plenty of time to figure this out.
Any help will be highly appreciated. Thanks in advance.