You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Satyanarayana Bobba <Sa...@infor.com> on 2008/05/16 11:18:23 UTC
Reload the Embedded Tomcat relam
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
RE: Reload the Embedded Tomcat relam
Posted by Satyanarayana Bobba <Sa...@infor.com>.
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
Re: Reload the Embedded Tomcat relam
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
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