Ok "merci beaucoup" Yoav !!!
QM, I agree with you that code MUST be clear,efficient and stable but a Realm can use 
and external resource (that's the aim ;-) and if that resource is "out of order", the 
webapp could automaticly switch to an another one and garantees a continued service.
Regards,
Arnaud

        -------- Message d'origine-------- 
        De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
        Date: jeu. 14/10/2004 14:56 
        Ã: Tomcat Users List 
        Cc: 
        Objet: RE: live disable realm
        
        


        Hi,
        
        >On Thu, Oct 14, 2004 at 11:14:52AM +0200, Boulay Arnaud wrote:
        >: My webapp is defined with a realm X.
        >: When the webapp starts, the realm is not available (break down
        somewhere
        >...).
        >: How can I dynamicly say to my webapp to use the realm Y without
        change
        >the Context declaration ?
        >
        >I don't think this is possible.
        
        It's possible.  You'd have to write a bit of Tomcat-specific code,
        namely:
        
        - Walk down the container hierarchy to your Context,
        - Create and initialize your new Realm (Realm Y in the above text)
        - Call YourContext.setRealm(Realm Y)
        - Et voila...
        
        But as I said, the code is Tomcat-specific.  It also has to reside in
        common/lib or common/classes, not WEB-INF/lib or WEB-INF/classes.  And
        it might be that you need to set privileged="true" in your Context
        declaration for this to work.
        
        Yoav
        
        
        
        This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.
        
        
        ---------------------------------------------------------------------
        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