Hi ALL,
I want to know how to get the real path of a deployed ear file in jboss.
I know how to get the real path of a deployed war file , but I want it for ear file.
I want to access a file which is directly under root of ear.
myApp.ear |----------version.xml [how to access this file to do File operations?] | | |----------web1.war | |----------web2.war
You can do this:
String serverDir= System.getProperty("jboss.server.home.dir"); String earDir = deployDir + "/deploy/" + "myApp.ear";