Just create your spring context in a static block in your mailet class, then access it from there.
-David > -----Original Message----- > From: alton (sent by Nabble.com) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 17, 2005 5:46 PM > To: [email protected] > Subject: Integration with Spring and Hibernate support > > > I'm interested in using JAMES as an application server that processes > inbound email with mailets in a way that is analogous to a web server > processing http requests. > > I also want to re-use business logic, IoC, transaction management and > Hibernate (ORM/database) support that Spring provides. > > To integrate Spring with JAMES, I need some way to load Spring's context > into memory (perhaps as a singleton) only as JAMES (or Avalon/Phoenix) > starts. Then I need to access Spring's context from the mailet without > reloading it. > > Does anyone have any suggessions ? > > Alton > > -- > Sent from the James - Users forum at Nabble.com: > http://www.nabble.com/Integration-with-Spring-and-Hibernate-support- > t233052.html#a651752 > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.338 / Virus Database: 267.10.11/74 - Release Date: 8/17/2005 > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
