RE: Where should I put my initialization code?

2008-02-16 Thread Steve Brewin
Martijn Brinkers wrote on 16 February 2008 12:10: > Hi, > > The complicating factor is that I would like to be able to > specify which > resources, for example hibernate config file, should be used during > initialization. This makes it easier for me to use different settings > for normal runtime

RE: Where should I put my initialization code?

2008-02-16 Thread Martijn Brinkers
Hi, The complicating factor is that I would like to be able to specify which resources, for example hibernate config file, should be used during initialization. This makes it easier for me to use different settings for normal runtime and testing. Preferably these settings should specified in confi

RE: Where should I put my initialization code?

2008-02-15 Thread Steve Brewin
let container is started. > > > > -- Steve > > > > > > > > > -----Original Message- > > > From: Martijn Brinkers [mailto:[EMAIL PROTECTED] > > > Sent: 12 February 2008 20:45 > > > To: James Users List > > > Subject: Where sho

Re: Where should I put my initialization code?

2008-02-12 Thread Tom Brown
t; -- 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? >

RE: Where should I put my initialization code?

2008-02-12 Thread Martijn Brinkers
gt; 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

RE: Where should I put my initialization code?

2008-02-12 Thread Steve Brewin
[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

Where should I put my initialization code?

2008-02-12 Thread Martijn Brinkers
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.