> In fact, I must add a method to Generic mailet(because all
> mailet extents this).Call for exemple LogUser. Is it that?

it appears to be, yes ...

 > With that, can I also do the log into the service
> method(the code write in the Generic method is execute
> ,no?)?

yes, that's the direction I would take ...


> -Pierre
>
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Envoy=e9 : jeudi 27
f=e9vrier
> 2003 16:17 =c0 : 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 =3d (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=e9l=e9charger MSN Messenger
http://www.ifrance.com/_reloc/m
> la 1=e8re messagerie instantan=e9e de France
>
>
> ----------------------------------------------------------
> ----------- To unsubscribe, e-mail:
> [EMAIL PROTECTED] For additional
> commands, e-mail: [EMAIL PROTECTED]
>



_______________________
thanks,
alan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to