I have a requirement where I need to download a file from folder placed outside the project folder, so that we dont have to build EAR and deploy each time we need to change the file.
I am using WAS 7 and Maven for build.
If I specify direct path its able to download without any concern,But I need to deploy the EAR in QA env so I need to use relative path irrespective of env.
I did as Sampada posted in comments.
Added the FILE_PATH in properties file which is placed outside the EAR.