Here is one way to do it, using a participant:
public class InstallParticipant extends BlockingParticipant {
Datasource datasource = Datasources.getRepInstance
().getDatasource(Config.getRepInstance().getString("DATASOURCE"));
...
protected void initialize() {
try {
DatabaseMailQueueFactory.getInstance(datasource).install();
} catch (Throwable t) {
logger.warning("Unable to install email queue. Most
probably already installed.");
}
}
In participants.xml add:
<participant blocking="true">InstallParticipant</participant>
Erik
On Dec 14, 2006, at 3:12 PM, David HM Spector wrote:
anyone have any idea what the table "EMAIL" is supposed to look
like for using DatabaseMailQueueExecutor? Derby is throwing errors
b/c the table doesn't exist.. but it not clear to me what/who is
supposed to be creating it...
regards,
David
----------------------------------------------------------------------
---------------------
David HM Spector
spector (at) zeitgeist.com
http://www.zeitgeist.com/
voice: +1 631.261.5013
fax: +1 212.656.1443
~ ~ ~
"New and stirring things are belittled because if they are not
belittled, the
humiliating question arises, 'Why then are you not taking part in
them?'"
--H. G. Wells
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users