>
> It is not a mailet!
>
You see - I needed the explaination ...
> (after read explications)
> Now, I don't limit the log in one mailet(I use it in a lot
> of mailets use by the spoolmanager to follow the evolution
> of mails that arrive on the server).
> To do this, I must call :
>
> try {
> // Instantiate the a tracking service
> tracking = (Tracking)
> compMgr.lookup("org.apache.james.services.Tracking");
> } catch (ComponentException cnfe) {
> log("Failed to retrieve Tracking component:" +
> cnfe.getMessage());
> } catch (Exception e) {
> log("Failed to retrieve Tracking component:" +
> e.getMessage());
> }}
>
> in each init method of each mailet.
> So I search to not do that at each time(do only one time
> when James start). In this case, is it possible?
it might be - instead of placing this code in each init()
method, you could look at the GenericMailet.class and see if
it can't be leveraged there, similar to where the log() gets
implemented.
_______________________
thanks,
alan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]