Note: Unfortunately it is not that trivial to get the Apache James examples to work. Here is how it goes.
Getting the demo code to run
- Get the Apache James 2.2.0 distribution from http://james.apache.org/. Unpack it. Get it to run.
- Once you got it to run, you should have a
dist/james-2.2.0/apps/ directory, which contains a
james.sar file. This is the actual James server. Into that
.sar file, the jamestalk.jar file, which gets built by the Eclipse project into its target directory, must go.
If you are scared about unpacking the .sar file (or don't know how to do
this) , popping jamestalk.jar it into SAR-INF/lib
and then repack the .sar file, just replace it with a modified james.sar.
- Nuke the james subdirectory next to
the james.sar file. Also remove all contents of the temp and
work directories one level up.
- Make sure that James still runs.
- For testing out the examples from the slides, modify the
configuration files located in dist/james-2.2.0/apps/james/SAR-INF/. You do have to restart
James every time you change the configuration.