Install sandesha2 module into <axis2 deploy folder>/modules folder. Add the RMPhase information into axis2.xml as following. Search for 'RMPhase' in the following xml block to identify the RM specific entries.
<!-- ================================================= --> <!-- Phases --> <!-- ================================================= --> <phaseOrder type="inflow"> <!-- System pre defined phases --> <phase name="Transport"/> <phase name="PreDispatch"/> <phase name="Dispatch"/> <phase name="PostDispatch"/> <!-- End system pre defined phases --> <!-- After PostDispatch phase, module or service author can add any phase as required --> <!-- User defined phases could be added here --> <!--phase name="userphase1"/--> <phase name="RMPhase"/> </phaseOrder> <phaseOrder type="outflow"> <!-- User defined phases could be added here --> <phase name="RMPhase"/> <!--phase name="RMPhase"/--> <!--phase name="userphase1"/--> <!--system predefined phase--> <phase name="MessageOut"/> </phaseOrder> <phaseOrder type="INfaultflow"> <!-- User defined phases could be added here --> <!--phase name="userphase1"/--> <phase name="RMPhase"/> </phaseOrder> <phaseOrder type="Outfaultflow"> <!-- User defined phases could be added here --> <phase name="RMPhase"/> <!--phase name="userphase1"/--> <phase name="MessageOut"/> </phaseOrder>
In the services xml file for the service which require RM enabled add the entry <module ref="sandesha2"/> If you need all services in the engine RM enabled add the above entry into axis2.xml.
You can use samples in the samples folder for testing.