Hi,
Quick answer (short on time) : Let your webapp depend on the jar [1] and
instanciate a spring context [2] on webapp init and use the
smtpserver/mailspooler/mailboxmanager/messagemanager beans to interact
depending on your needs.
See also http://markmail.org/thread/2e4czins6teazzuw for a older
conversation on this (architecture details have changed).
Tks,
- Eric
[1]
https://svn.apache.org/repos/asf/james/server/trunk/container-spring/pom.xml
[2]
https://svn.apache.org/repos/asf/james/server/trunk/container-spring/src/main/config/james/context/james-server-context.xml
On 31/05/2011 13:10, Dariusz Luksza wrote:
On 05/30/11 11:48, Norman Maurer wrote:
Yes, I hope we will once have a replacement which use NIO.
OK, but now, after a little bit of thinking this isn't an issue for me.
The JAMES server can uses what ever it would like to use to communicate
with other servers.
I would like to embed JAMES inside my web application and would like to
communicate directly with it without using SMTP or POP3/IMAP to send
and receive mails.
What I want to achieve is a integrated system that talks directly to mail
server using it internals not the defined net protocol (like smtp/pop3).
I can "hack" james (debug it internal architecture and find places
that from my point of view are suitable for me), but such process is
error prone and consume lots of time. Other solution is just ask the
developers (and this is my current approach ;))
So my questions are still open:
* how configure and run JAMES programatically (without init scripts) ?
* how hook inside mail sending process to send mails not connecting
to localhost:25
* same for receiving mails via pop3/imap
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]