Good point. I was already thinking this way for UserRepository, but had not extrapolated to MailRepository.
We might want to think about whether JNDI is all that fantastic for high volume write access, however. Most uses of JNDI that I am aware of are read often, write occasionally.

Cheers

ADK

Harmeet Bedi wrote:

Aaron, I think it is a good idea. Extending this a bit

do you think
----- Original Message -----
// Obtain a reference to a custom mail repository used by this mailet
MailRepository repository = (MailRepository)myContext.lookup("myRepository");

should be

// Obtain a reference to a custom mail repository used by this mailet
DirContext repository = (DirContext)myContext.lookup("myRepository");

Why would James need a non JNDI interface for Repository ?
Harmeet


---------------------------------------------------------------------
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