Mailets and Spring

2009-03-17 Thread Corrado Alesso
Hello everyone. I have to write a Mailet for the James Mail Server, and the Mailet is going to need some collaborators defined as Spring Beans. Do you have any advice about how to architect this system? My problems are about Spring Application Context visibility from James. Thank you, Cor

Re: Mailets and Spring

2009-03-17 Thread Ajay Chitre
I would recommend not touching the Spring beans from inside a Mailet. Personally, I think of a Mailet as a kind of a Servlet. We don't call spring beans directly from a Servlet. Most of the time we have some kind of "Business Delegate" or "Facade" that's responsible for handling business logic in

Re: Mailets and Spring

2009-03-17 Thread Bernd Fondermann
On Tue, Mar 17, 2009 at 15:57, Corrado Alesso wrote: > Hello everyone. > > I have to write a Mailet for the James Mail Server, and the Mailet is going > to need some collaborators defined as Spring Beans. > > Do you have any advice about how to architect this system? My problems are > about Spring