I have a class that loads some data from a text file. In WSAD development in we give a FileReader the full d:\path\name.ext and it works fine. When deployed to WebSphere on AIX I don't know how to develop a filespec - fully qualified or relative - that will work.
I'm told that our EAR is deployed to a directory like this:
/opt/WebSphere/AppServer/installedApps/ourAppCell/ourApp.ear
Is it safe to use that as a base and add something like "/config/components/name.ext" on the end? Or is there a WebSphere or
J2EE API to get this value dynamically from the container rather than putting it in application configuration? Or is reading a file a totally bad idea?
Thanks!