In fact, I must add a method to Generic mailet(because all mailet extents this).Call for exemple LogUser. Is it that?
With that, can I also do the log into the service method(the code write in the Generic method is execute,no?)? -Pierre -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoy� : jeudi 27 f�vrier 2003 16:17 � : James Developers List Objet : RE: User-Log > > 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] _____________________________________________________________________ Envie de discuter en "live" avec vos amis ? T�l�charger MSN Messenger http://www.ifrance.com/_reloc/m la 1�re messagerie instantan�e de France --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
