Re: [Rife-users] users.xml
As JR said, I think that mutable XML is not a good idea. Just use the DB users. On 12-dec-05, at 17:19, F Baube wrote: Look in your WEB-INF/web.xml file; it's defined in the init-param "rep.path" I'm asking about this because I have previously discussed making the file rep/users.xml (i.e. MemoryUsers) a writable, updatable resource. A question for Geert is: If my authentication source is a _database_, and I call RoleUsersManager addUser(..) or removeUser(..), is the DB updated to reflect the change, as one would expect ? Because the issue w.r.t. rep/users.xml is: If I write a new class MutableMemoryUsers, and I call RoleUsersManager addUser(..) or removeUser(..) on it, how do I tell Rife to 1) mirror the changes to rep/users.xml , AND 2) update Rife's runtime authentication database In other words.. (a) how much of these is there already support for, and (b) how much new code must be written, and (c) where are the triggers to the Rife runtime engine. In any case it might be wiser to move to an in-DB authentication source, if the addition and removal of users is already handled. fred ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] users.xml
On 12/12/05, F Baube <[EMAIL PROTECTED]> wrote: > > Look in your WEB-INF/web.xml file; > > it's defined in the init-param "rep.path" > > I'm asking about this because I have previously discussed > making the file rep/users.xml (i.e. MemoryUsers) a writable, > updatable resource. > > A question for Geert is: > > If my authentication source is a _database_, and I call > RoleUsersManager addUser(..) or removeUser(..), is the > DB updated to reflect the change, as one would expect ? Yes of course it is. > > Because the issue w.r.t. rep/users.xml is: If I write a > new class MutableMemoryUsers, and I call RoleUsersManager > addUser(..) or removeUser(..) on it, how do I tell Rife to > > 1) mirror the changes to rep/users.xml , AND AFAIK there is no way at the moment to write to users.xml. Note the Memory in MemoryUsers. It's stored in memory and is bootstrapped by the users.xml file. Nothing is stopping you from storing state in the XML file, but usage of a database is almost required in today's webapp world. I would strongly suggest just using an embedded database instead of trying to create some persistent memory cache. > > 2) update Rife's runtime authentication database > > In other words.. (a) how much of these is there already > support for, and (b) how much new code must be written, > and (c) where are the triggers to the Rife runtime engine. > > In any case it might be wiser to move to an in-DB authentication > source, if the addition and removal of users is already handled. > > > fred > > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://www.uwyn.com/mailman/listinfo/rife-users > -- JR Boyens [EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] users.xml
> Look in your WEB-INF/web.xml file; > it's defined in the init-param "rep.path" I'm asking about this because I have previously discussed making the file rep/users.xml (i.e. MemoryUsers) a writable, updatable resource. A question for Geert is: If my authentication source is a _database_, and I call RoleUsersManager addUser(..) or removeUser(..), is the DB updated to reflect the change, as one would expect ? Because the issue w.r.t. rep/users.xml is: If I write a new class MutableMemoryUsers, and I call RoleUsersManager addUser(..) or removeUser(..) on it, how do I tell Rife to 1) mirror the changes to rep/users.xml , AND 2) update Rife's runtime authentication database In other words.. (a) how much of these is there already support for, and (b) how much new code must be written, and (c) where are the triggers to the Rife runtime engine. In any case it might be wiser to move to an in-DB authentication source, if the addition and removal of users is already handled. fred ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] users.xml
And then u can see it in use in the ~.servlet.RepServlet class and some info on it in the ~.rep.BloclingRepository class -- eokyere On 12/12/05, Emmanuel Okyere <[EMAIL PROTECTED]> wrote: > Baube, > > Look in your WEB-INF/web.xml file; it's defined in the init-param "rep.path" > > HTH > -- eokyere > > > On 12/12/05, F Baube <[EMAIL PROTECTED]> wrote: > > Another potentially stupid question here ... > > > > How exactly does Rife locate the directory "rep/" at start-up ? > > Does it use CATALINA_* or TOMCAT_* environment variables ? > > > > I grep'd the source code but could not find anything obvious. > > > > > > thx > > > > fred > > > > -- > > F.Baube* > > Georgetown/MSFS/1988 * Act locally. > > email fbaube#welho.com * Think pangalactically. > > gsm +358 41 536 8192 * > > wmd 60°11'10.8"N 24°57'36.9"E > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://www.uwyn.com/mailman/listinfo/rife-users > > > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] users.xml
Baube, Look in your WEB-INF/web.xml file; it's defined in the init-param "rep.path" HTH -- eokyere On 12/12/05, F Baube <[EMAIL PROTECTED]> wrote: > Another potentially stupid question here ... > > How exactly does Rife locate the directory "rep/" at start-up ? > Does it use CATALINA_* or TOMCAT_* environment variables ? > > I grep'd the source code but could not find anything obvious. > > > thx > > fred > > -- > F.Baube* > Georgetown/MSFS/1988 * Act locally. > email fbaube#welho.com * Think pangalactically. > gsm +358 41 536 8192 * > wmd 60°11'10.8"N 24°57'36.9"E > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://www.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users