For any of the above cases of providing custom receiver code you must:
- Extend the appropriate class (e.g. public class MyReceiver extends curam.util.connectors.axis2.CuramMessageReceiver). (See Deployment Descriptor File for the list of receiver classes and their usage.)
- Specify a package name of webservice in your custom Java program (e.g.: package webservice;).
- Place your custom source code in your components source/webservice directory (e.g. components/mycomponents/source/webservice). The server build target will then build and package this custom receiver code.
- Create a custom services.xml descriptor file for each service class to be overridden by your custom behavior. See Deployment Descriptor File and Building Custom Receiver Code below.
Figure 1. Sample services.xml Descriptor File Entry for a Custom Receiver<messageReceivers>
<messageReceiver
mep="http://www.w3.org/2004/08/wsdl/in-out"
class="webservice.MyReceiver"/>
</messageReceivers>
The webservices build (implemented in app_webservices2.xml) will package these custom artifacts into a WAR file.