If the synapse is run top on axis2 or any other, it should be properly initialized and started before initialize synapse. It is a well known semantic that system should be in consistent state before use it. You can refer [1] and it says why I did.
The way message get in to synapse and mediation engine (main behavior) are two different aspects and definitely should have two different decision designs as it is wrong if main behavior depend on other behavior. The starting, shutdown --- simply state (consistent) management of mediation should not depend any thing. Axis2 Hander is make way to get message into in to synapse and for good design, mediation engine should separate from this design decision. Managing mediation engine should be independent from axis2 or any other. If it is needed to avoid effect of started listeners if the synapse mediation engine started up is failed, then only applicable transaction semantic is compensation transaction. In order to enforce that, it is needed to properly shutdown listeners, etc --- some how need to move into a consistent state before system startup. [1] http://www.mail-archive.com/dev@synapse.apache.org/msg02688.html Thanks Indika --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org For additional commands, e-mail: dev-h...@synapse.apache.org