Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

Re: J2EE App access to File System on HCP

$
0
0

The standard, portable and recommended way to achieve this in Java EE (I do hope you are using Java EE - though it holds for J2EE too) is to use ClassLoader.getResourceAsStream(String name). The ClassLoader is your app's ClassLoader (which you can obtain e.g. as getClass().getClassLoader()) and the resource name is the absolute path to the resource within your deployment module (i.e. WAR).


Viewing all articles
Browse latest Browse all 2878

Trending Articles