So, I found an old thread that discusses how to obtain the UsersRepository 
using the Avalon framework:

http://tinyurl.com/4v8r3

The code uses the ComponentManager to lookup the UsersStore.  I attempted to 
use this same code and I'm running into the problem where ComponentManager is 
deprecated.  Is there a workaround I can use to get at the UsersRepository?  

Thanks,
Ricardo

-----Original Message-----
From: Ricardo Cortes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 11:01 AM
To: James Users List
Subject: Mailet & UsersRepository Question


Hi there,

I've got my mailet deploying correctly but I have a question that I can't seem 
to answer.  Is there a way to get a handle on the users repository from inside 
a Mailet that extends GenericMailet?  Specifically, I'd like to get the 
forwardDestination of a specific user from within a Mailet.  I'm able to get a 
handle on the MailetConfig using getMailetConfig() and then I'm able to get a 
handle on the MailetContext using getMailetContext() on the returned 
MailetConfig but the MailetContext object does not respond to 
getUserRepository() even though getUserRepository() is listed in the 
MailetContext Javadocs.  Can someone tell me what I'm doing wrong?

Thanks,
Ricardo



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to