Skip to Content
0
Former Member
Jul 15, 2005 at 09:08 AM

Read a file inside our par file

21 Views

Hello everyone,

we have created a PAR file and deployed it to the portal successfully. Inside the service we are reading a file named keywords.properties which is accessed via an absolute path on the file system.

We have now placed the keywords.properties inside the PAR file but are not quite sure how to access it.

Question:

We use a simple File class to access the file. Since we do not have a ServletContext or anything similar how do we read this file inside the PAR or how do we get a path where the file resides?

Points WILL be rewarded. Thank a lot in advance.