Hi The Mailet init() method offers the oppurtunity to set things up. As documented here - http://james.apache.org/server/2.3.1/custom_mailet.html - it is called just once as the mailet container is started.
-- Steve > -----Original Message----- > From: Martijn Brinkers [mailto:[EMAIL PROTECTED] > Sent: 12 February 2008 20:45 > To: James Users List > Subject: Where should I put my initialization code? > > > Hi, > > For my mailets/matchers I need to initialize some global objects upon > start of James. One way to solve this would be to initialize > on demand, > ie when a getter is called for the global object. I would > however prefer > to initialize the objects beforehand because it makes testing somewhat > easier. Is there a way to do this differently with James? > Should I write > a James service for this? > > Martijn > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
