Re: Mailet: Getting MailRepository and UsersRepository from MailetContext

2004-10-09 Thread Carl Downs
Thanks for the reply Danny... apologies for the latent response.    I see.  That makes sense now.  The JNDI method would be a clean way to provide access.  And as you say James already seems to have most of the abstract representations of the services (in org.apache.james.services) needed so this

Re: Mailet: Getting MailRepository and UsersRepository from MailetContext

2004-10-07 Thread Danny Angus
-> I was able to get this to work. Not sure it's *the* -> way to do it, though... Carl You've spotted our private shame ;-) With the crrent version of the Mailet API that is the only way. In fact this is a defect in the API, it compels you to have some knowedge of the "vendor specific" architec

Re: Mailet: Getting MailRepository and UsersRepository from MailetContext

2004-10-06 Thread Carl Downs
I was able to get this to work. Not sure it's *the* way to do it, though... Carl >From the James class source file: // For mailet engine provide MailetContext //compMgr.put("org.apache.mailet.MailetContext", this); // For AVALON aware mailets and matchers, we put the Component object as // an at

Mailet: Getting MailRepository and UsersRepository from MailetContext

2004-10-04 Thread Carl Downs
Hello- v2.2.0 distribution Java 1.4.0 I would like to use the UsersRepository and MailRepository from within a Mailet interface service() method. The javadocs posted on the James site show these MailetContext interface signatures: MailRepository getMailRepository (String specificationURL);