What version of james are you using?
Are you extending GenericMailet ? init() is only available in
GenericMailet extensions and not in the Mailet interface..
Do you see the logs you added?
Stefano
Etewa wrote:
I am writing a custom mailet and can't figure out why my init params aren't
showing up. I am compiling source and my config files and jars are showing
up in james.sar. I have searched this list and Google with no luck. The
mailet is being called and processing like I would expect.
Here is the snippet from my config file:
<mailet match="All" class="EmailBounce">
<queue>Some Name</queue>
<jmsProviderUrl>Some Name</jmsProviderUrl>
</mailet>
My init() from the Mailet
public void init() throws MessagingException {
super.init();
log("Initializing SMTEmailBounce Mailet: ");
queueName = getInitParameter("queue");
jmsProviderUrl = getInitParameter("jmsProviderUrl");
log("Mailet Params: " + jmsProviderUrl + "|" + queueName);
log("Getting all init params");
Iterator iter = getInitParameterNames();
while(iter.hasNext()) {
log("Param Names: " + iter.next());
}
}
Any help is apprecited,
Thanks,
James
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]