web applications - Finding paths for packaged non-java files at runtime -
so might stupid question but...
i want package specific wsdl file in ejb project within eclipse. best way refer file in code?
i use relative path current directory starts off in /bin directory of jboss installation. seems there should way refer file in relation project file structure.
any ideas?
getclass().getresource(string path)
uses relative path locate classpath resource. returns java.net.url
. alternatively, can use getresourceasstream(..)
obtain inputstream
resource.
Comments
Post a Comment