You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Hans Liebenberg <ha...@cambrient.com> on 2005/07/04 15:36:37 UTC
Avalon Context from a Mailet
Hi,
How do I access the avalon context from a mailet/matcher?
Basicaly I need to read a file from the application context "conf"
directory.
I want to do something like:
File f = null;
try {
f = AvalonContextUtilities.getFile(context, filename);
} catch (Exception e) {
getLogger().fatalError(e.getMessage(), e);
throw e;
}
but i need the context.
Thanks
Hans