tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Satyanarayana Bobba" <Satyanarayana.Bo...@infor.com>
Subject RE: Reload the Embedded Tomcat relam
Date Mon, 19 May 2008 06:19:23 GMT
Hi Filip,

Do you have any example to reload the Realm with the updated
tomcat-users.xml file.


I have understood in this way for your replay, if it is wrong then
please correct me.


Lifecycle methods means, 
MemoryRealm.stop();
MemoryRealm.start();
Embedded.setRealm(MemoryRealm);


I have tried with in the above mentioned manner, but it is not reloading
the new users.



Thanks & Regards
Satya

-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com] 
Sent: Friday, May 16, 2008 10:22 PM
To: Tomcat Users List
Subject: Re: Reload the Embedded Tomcat relam

realms have a lifecycle, so you would need to start it

Filip

Satyanarayana Bobba wrote:
> Hi All,
>
>  
>
> I am using the embedded tomcat in my application and I want to change
> the tomcat-users.xml file dynamically.
>
>  
>
> Initially, I am setting that Realm to embedded tomcat by using the
> setRealm() method.
>
>  
>
> Later on, I add the new users and changed the roles of the existing
> users and again called the embedded.setRealm(), but it is not loading
> the new users.
>
>  
>
> Is there any way to load the updated user info into realm object and
how
> to override the old realm object with the new realm in the embedded
> tomcat?
>
>  
>
> Thanks & Regards,
>
> Satya
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>
>   
>
------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 7.5.524 / Virus Database: 269.23.16/1445 - Release Date:
5/15/2008 7:25 PM
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message