I seem to recall someone asking about a simple way to administer users for
an instance of James that relied on MySQL.

If anyone's interested, I've written one.

It's a standard web app, that'll run under Tomcat 4.

I used it as a way to learn Hibernate, and get a little better at XML/XSLT.

I've not spent the time to put any licensing in the code, so feel free to
use it how you wish, with no warranty what-so-ever.

To run this, just deploy the WAR, and modify the
"WEB-INF/classes/hibernate.cfg.xml" to set your MySQL user/password/server
settings.

Make a backup of your Users table first!

There's no documentation beyond this message, but I'll happily answer
questions.

I'm not sure if the James project would want this code, as it is specific to
a JDBC/MySQL implementation, though I'd imagine using Hibernate should make
it a little easier to migrate to a different database, it wouldn't work as
is for a file based implementation, though one should be able to just
rewrite the JamesAdmin class to get the same functionality via Telnet.

To simplify things, I've included all the required jars in the Source ZIP
and the WAR, so they are a little heavy...I also included the James 2.2.0
jar (for the DigestUtils class)...clumsy, but effective:

http://www.intfar.com/ApacheJames/ApacheJamesAdministratorSource.zip (11Mb)

http://www.intfar.com/ApacheJames/aja.war (11Mb)

If there's any issue with my making this code available (or the way I've
included the James jar), let me know and I'll take it offline.

Feedback is welcome.

Thanks.

-Chris


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

Reply via email to