JAMES Mailet development process
Posted
by itsadok
on Stack Overflow
See other posts from Stack Overflow
or by itsadok
Published on 2010-03-08T09:46:13Z
Indexed on
2010/03/08
9:51 UTC
Read the original article
Hit count: 1135
I'm starting a project that involves writing mailets for Apache James. As far as I can tell, the only way to test a change in my code (on Windows) is through the following steps:
- Compile the mailet code
- Build a jar file containing the mailet
- Copy the jar file into the
apps/james/SAR-INF/lib
directory - Start JAMES from run.bat
- Run test
- Stop JAMES by telneting to port 4555 and issuing a shutdown command (I guess on Linux a SIGTERM would suffice)
I can automate all these steps using Ant and some scripting magic, but I was wondering if I was missing something. Does anyone here have experience developing mailets? Did you use a similar process, or is there an easier way?
For example, is there a way to make a running James instance reload the mailets JAR?
© Stack Overflow or respective owner