W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1999

WANTED: ddUserToRealm-Servlet / and: Re: User disappearing from realm

From: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
Date: Sun, 19 Sep 1999 22:22:16 +0200
Message-Id: <37E545F8.CA2CFFC8@informatik.med.uni-giessen.de>
To: Jigsaw Mailing List <www-jigsaw@w3.org>

Hi !

----

Jeff Van Epps wrote:

> Occasionally users who were present in a realm later are not found in the
> realm. I haven't narrowed it down exactly but my current theory is that
> somehow users added are not saved to disk until I click the save button in
> JigAdmin, and that's why they are missing after a shutdown and restart of
> the server. Has anyone else seen this? Is there a programmatic way for my
> AddUserToRealm servlet to force a write to disk?

Yes, see the JigKill sources
(Jigsaw/src/classes/org/w3c/jigsaw/admin/JigKill.java): jigkill as a --save
option.

But: Be sure that the server isn't saved each change, this may cause problems
(another problem: IMHO it isn't a good idea to trigger a server "save" from a
HTTP-server-thread - this may force a deadlock...)

Better way: Write new ream users to reals and a log file. After (for
example) 10 minutes the servers are saved if there were some new users.
If the server was shut down between add-to-realm and before server-write, the
servlet can retry this based on the next servler startup (e.g. init() adds the
new users again to the "list of users to be added". Note that the thread which
calls init() should NOT be the one who calls the server "save" - see above).

----

BTW: Is it possible that you "contribute" the sources of the
AddUserToRealm-Servlet to the jigsaw distribution, please ?

----

Bye,
Roland

--
  __ .  . __
 (o.\ \/ /.o) Roland Mainz                               C/JAVA programmer
  \__\/\/__/  Roland.Mainz@informatik.med.uni-giessen.de MPEG specialist
  /O /==\ O\  gisburn@informatik.med.uni-giessen.de      Sun&Unix programmer
 (;O/ \/ \O;) TEL +49 (0) 641/99-13193  FAX +49 (0) 641/99-41359
Received on Sunday, 19 September 1999 16:22:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:33 GMT