You can do this:
String serverDir= System.getProperty("jboss.server.home.dir");
| String earDir = deployDir + "/deploy/" + "myApp.ear";
Yes, this means you need to hard-code the name of the deploy directory and the name of the
ear file (or read it from a properties file somewhere).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158780#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...