Hi,

You should put the james jar, their dependencies, and the spring definitions on your classpath, the configuration files in the correct folder (in ./../conf from your current folder), and invoke the james main class.

I know much too short as explanation....
Tell us if you want to know more and we'll write a tutorial for this.

We are also moving from file base loading to classpath loading, which will make the stuff easier.

Thx,

Eric

On 21/11/11 17:01, Hicks, Matt wrote:
I'm trying to utilize James as an embedded mail server within my
application and I am having trouble trying to programmatically start the
server.  I started out simply creating a new URLClassLoader and putting all
the lib JARs into it and passing all the calls specified in the "run.bat",
but for some reason it's having trouble with the base directory.

Next I tried a more ideal scenario and attempted to instantiate the
IMAPServer and SMTPServer directly, but I'm not sure how to specific the
values for configure to be able to launch properly.

Any tips or suggestions for launching James within the same JVM as my
application would be greatly appreciated.

Thank you,

Matt Hicks


--
Eric
http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to