Miro,

Don't post to both lists, pick one.


My custom matcher and mailet (MatchFaxRecipient & SendMailAsFax) needs to
access MySQL Database to retrieve and store data in. What is the correct way
and practice to init and use database ?

Mailet API as it stands does not provide any mechanism for JDBC datasources.
However James does, see the code for initDb()  in
org.apache.james.transportMailets.BayseianAnalysis.java

http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/transport/mailets/BayesianAnalysis.java?view=markup

I do some tests and I see that the same mailet is running in different
thread each time when is invoked. Do I need to start new thread for invoking
of service() method of each mailet or the multitasking is not my care?

It is not your concern, James manages the threads, you just have to
write your mailet.

d.

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

Reply via email to