Hi all, 

I was looking for some help with user creation in James.  I have read the 
documention that explains how to manage users via the James admin, however, we 
would like to be able to add users programmatically.  Looking at the API, I'm 
going to assume that I should primarily be concerned with the 
org.apache.james.userrepository package, but I have a few questions:

1) Does anyone know of a "starting point?"  

Right now, I am struggling with basics, such as how do I initiate a connection 
to the server to even start trying to make modifictions?  I guess a parallel to 
this would be that if I were trying to connect to a DB, I'd be setting up all 
of the JDBC info.  Would I be doing this in the configure() method of one of 
the user repositories?  Or should I be looking elsewhere?


2) Does it matter if I'm using the file system or DB storage methods?

I contacted someone from a James mailing list to ask some basic question (that 
person had originally been asking if anyone knew of any additional doc/training 
info/examples).  Anyway, this person stated that if I wanted to add users 
programmatically, that I should go with DB storage.  Can anyone comment on 
this?  I see that in the UsersFileRepository class, there is an addUser() 
method, so I'd assume it didn't matter.


Any help or pointers would be greatly appreciated.


Thanks,
Don Kim

DISCLAIMER:
  The information contained in this e-mail may be confidential and is intended 
solely for the use of the named addressee. Access, copying or re-use of the 
e-mail or any information contained herein by any other person is not 
authorized. If you are not the intended recipient please notify us immediately 
by returning the e-mail to the originator.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to