[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: extracted ear/war/jar file location

PeterJ do-not-reply at jboss.com
Wed Dec 26 14:20:24 EST 2007


Try loading a class or properties file as a resource, then look at the path for the resource. That should get you the information you need.  

I think this code will work (substituting the class names with classes in your app):

Class class1 = ClassInApp.class;
URL url = class1.getResource("ClassInApp.class");
String s = url.toString();

The string 's' should contain the full path to the class file, which contains the tmp/deploy directory.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115541#4115541

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115541



More information about the jboss-user mailing list