Hi.
I try to use the XMLUserManager. I can read my
principal.xml and get all the groups and all the users
from my principal.xml. I create new users and add
them. They does exists but only in memory. But now I
want to save the new users. Nothing happens when I
call manager.store(). principal.xml is the same.
Anyone has any idea what I do wrong and how I should
do.

XMLUserManager manager =   
(XMLUserManager)context.getAttribute("user.manager");

if(manager instanceof XMLUserManager)
        System.out.println("OK!");

      Group gr = manager.getGroup("p_users");


      User user = manager.createUser(
            req.getParameter("j_username"), 
            req.getParameter("j_password"));
      user.addToGroup(gr);
      manager.update();
      manager.store(); // This does nothing!!

Best regards Tomas


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Reply via email to