Kenny,
If you add a user directly through JDBC UserRepository, what are the
requried attributes
( username, password..etc) to insert into a row? Will James automatically
create an inbox
and initialize any other necessary stuff for a user once a row has been
inserted? I am
worried that if I am doing inserting myself, instead of calling addUser(), I
might break
other things.
Charles
----- Original Message -----
From: "Charles" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 3:33 PM
Subject: Re: adding user using JSP/Servlet
> I agree managing users through telnet is fragile. But how do I get access
to
> the JDBC UserRepository object in a servlet? I assume that James will
> need to read my config.xml and so I can't just create a instance of it in
> a servlet. If I just run the run.bat file, James will be properly
> configured, but
> then I don't have any access to it inside a servlet. Is JNDI a solution
for
> this?
>
> Charles
> ----- Original Message -----
> From: "Steve" <[EMAIL PROTECTED]>
> To: "James Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 26, 2003 1:52 PM
> Subject: Re: adding user using JSP/Servlet
>
>
> > I have been learning struts/hibernate for my job. As an exercise, I
> created
> > a webapp which lets me add/modify/delete users. Thanks to
> > struts/tiles, it is very easy to modify the layout.
> >
> > So far, its nothing glamorous, basically add, modify, and delete a
record
> in
> > the users table. Also, as I said, I am learning hibernate, so some of
the
> > code
> > could be cleaned up. I was going to work next on accessing the inboxes
for
> > some of the mail admin type work. Let me know if you are interested and
I
> > will send you the code.
> >
> > Steve B.
> >
> >
> > ----- Original Message -----
> > From: "Kenny Smith" <[EMAIL PROTECTED]>
> > To: "James Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 26, 2003 11:09 AM
> > Subject: Re: adding user using JSP/Servlet
> >
> >
> > > Hi alan,
> > >
> > > Most likely! When I originally wrote it, I barely knew anything about
> > > James (not too much has changed *smile*) so I couldn't add cool things
> > > like that into it. I just needed to get a working product because I
had
> > > convinced them to move from sendmail to James and I needed to replace
> > > the automation they had for user accounts and aliases asap.
> > >
> > > Kenny Smith
> > > JournalScape.com
> > >
> > > alan.gerhard wrote:
> > >
> > > > Kenny -
> > > >
> > > > Since you are using the James package for password
> > > > encryption, would it be that much more to use the
> > > > interface to the user repository ??
> > > > This way your code could be used as a basis for a more
> > > > generic web-based user management utility.
> > > >
> > > >
> > > >
> > > >
> > > > >I'm using the JDBCUserRepository to store my users, and I
> > > > >just wrote a webapp that inserts rows into the database
> > > > >directly. I used one of the James classes to encrypt the
> > > > >password (so it would always be done the same way) and
> > > > >that works great for me. I hate doing something
> > > > >interactive like telnet in a automated fashion. It just
> > > > >seems fragile to me.
> > > > >
> > > > >Kenny Smith
> > > > >JournalScape.com
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]