Search code examples
jbosspathsoawarweb-deployment-project

to get the path of a war file deployed in the jboss SOA server


i want the path of the war file that is deployed in the jboss SOA server . as the file can be deployed in any of the folder

all, default, minimal, production, standard, web

so i dont want to hardcode my path , whenever i need to find a file in any of these folder . please help me in the following matter .

i have one more question as when a war file is deployed can we put a xml file with it external to the war file.


Solution

  • You might not be able to as the .war file will be unpacked before the web application is started and the web application will therefore not have, nor need, knowledge of the .war file it was previously archived in.