I came in need of a participant for some initialization work for my web application.
So i implemented a java class and registered it to the rep/participants.xml file as shown below
<rep>
<participant blocking="true">ri.server.participant.ParticipantMySiteInitializer</participant>
<participant param="rep/config-base.xml" blocking="true">ParticipantConfig</participant>
<participant param="rep/datasources.xml" blocking="true">ParticipantDatasources</participant>
<participant param="sites/mysite.xml" blocking="true">ParticipantSite</participant>
</rep>
My requirement is that if my initializer participant fails rest of the participants will not work. The first problem i faced is about telling rife that the participant failed. I tried to throw a RuntimeException from the initialize() method of the participant since it does not declare any thrown exceptions. This way the failure is ok but when i check the logs, is see a huge [MultiException] stacktrace since the exception is not meant to be handled by rife (i think?).
Is there another way to show rife that a participant failed so that it will not run other participants?
Also i cannot make a System.exit() call cause i have other applications deployed on the container.
_______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
