james-server-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danny Angus <Danny_An...@slc.co.uk>
Subject Re: mailet calls
Date Thu, 17 Jun 2004 08:28:38 GMT





> the reason is because I want to run a java class when james starts up at
the
> very first time.

Don't post the same message over and over again, it only annoys people.
People are not more likely to know the answer just because you keep
repeating the question.

It is not at all clear why you think that what you have done should have
the effect you want.

The Mailet API makes no provision for Objects to be instantiated once only
on start up.
You should write a mailet and put any start-up code in the init() method.
Use a static variable or singleton to ensure that your code is only run
once.
Declare this mailet in a "Processor" in the config file.

If you insist upon using entity substitution you will need to make sure
that the resulting XML is the same as it would be if it were all in one
file. Yours is clearly not.

d.



***************************************************************************
The information in this e-mail is confidential and for use by the addressee(s) only. If you
are not the intended recipient (or responsible for delivery of the message to the intended
recipient) please notify us immediately on 0141 306 2050 and delete the message from your
computer. You may not copy or forward it or use or disclose its contents to any other person.
As Internet communications are capable of data corruption Student Loans Company Limited does
not accept any  responsibility for changes made to this message after it was sent. For this
reason it may be inappropriate to rely on advice or opinions contained in an e-mail without
obtaining written confirmation of it. Neither Student Loans Company Limited or the sender
accepts any liability or responsibility for viruses as it is your responsibility to scan attachments
(if any). Opinions and views expressed in this e-mail are those of the sender and may not
reflect the opinions and views of The Student Loans Company Limited.

This footnote also confirms that this email message has been swept for the presence of computer
viruses.

**************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Mime
View raw message