Try this:
String path = "your-relative-path.xml"
InputStream ins= null;
try {
ins = getClass().getClassLoader().getResourceAsStream(path);
}
catch (Throwable ex) {
com.amaio.util.sys.prn("Error getting XML resource"+ex);
}
- Original Message -
From: Toth [@FREEMAIL],
ourse it's working with java -Doption=value -jar orion.jar
BR,
Adam
-Original Message-
From: Petr Podsednik
To: Orion-Interest
Subject: Re: Where to put application parameters?
Try this:
String path = "your-relative-path.xml"
InputStream ins= null;
try
k if you try and use the getInitParameter in the
service/post methods.
try getting the configuration and the servletcontext from that.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Petr Podsednik
Sent: 06 April 2001 08:55
To: Orion-Interest
Subject: Re: Wher