Ye Tao wrote:
> 
> ?
> there is only one comp variable defined in James. and
> throughout the class, all the methods reference the
> comp variable to put/get components, including
> dnsServer, spool, user manager etc. In other words,
> the user repository component is at the same level as
> the other 'system' modules. Since the
> SimpleComponentManager is little more than a
> hashtable, potentially it's possible to override one
> of the 'system' components (such as spool) because one
> of the user happen to have the same name. IMHO, the
> user repositories should be managed by a separate
> component manager.
> 

I'd rather use a different "namespace" for users repository to avoid
conflicts. So every user repository instance should be named
"user.[username]" in the comp so that we are guarantee no other system
resource will conflict.


Federico Barbieri
<[EMAIL PROTECTED]>


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to